- 论坛徽章:
- 0
|
在我的机器上配置DNS服务器不能成功(用host测试都不行),真是气死我也。我机器的IP为10.10.10.100,请各位大虾帮忙看看
其他需要解析的IP为
zwqk.nmzl.com 172.16.1.208
tech.nmzl.com 172.16.1.207
gov.nmzl.com 172.16.1.210
xxswj.nmzl.com 172.16.1.207
www.nmzl.com 172.16.1.206
wanfangdata.nmzl.com 172.16.1.208
pop3.nmzl.com 172.16.1.210
smtp.nmzl.com 172.16.1.210
mail.nmzl.com 172.16.1.210
movie.nmzl.com I172.16.1.207
music.nmzl.com 172.16.1.207
flash.nmzl.com 172.16.1.207
meeting.nmzl.com 172.16.1.207
data.nmzl.com 172.16.1.207
center.nmzl.com 172.16.1.207
named.conf文件的配置
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "nmzl.com" IN {
type master;
file "nmzl.com.hosts";
};
zone "1.16.172.in-addr.arpa" IN {
type master;
file "172.16.1.rev";
};
include "/etc/rndc.key";
172.16.1.rev
$TTL 86400
@ IN SOA liubo.nmzl.com. root.localhost(
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS liubo.nmzl.com.
206 IN PTR www.nmzl.com.
208 IN PTR zwqk.nmzl.com.
207 IN PTR tech.nmzl.com.
210 IN PTR gov.nmzl.com.
207 IN PTR xxswj.nmzl.com.
nmzl.com.hosts文件的配置
$TTL 86400
@ 1D IN SOA liubo.nmzl.com. root.localhost.
(
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS liubo.nmzl.com.
IN MX 10 mail.nmzl.com.
liubo IN A 10.10.10.100
zwqk IN A 172.16.1.208
tech IN A 172.16.1.207
gov IN A 172.16.1.210
xxswj IN A 172.16.1.207
www IN A 172.16.1.206
wanfangdata IN CNAME zwqk.nmzl.com.
pop3 IN CNAME gov.nmzl.com.
smtp IN CNAME gov.nmzl.com.
mail IN CNAME gov.nmzl.com.
movie IN CNAME tech.nmzl.com.
music IN CNAME tech.nmzl.com.
flash IN CNAME tech.nmzl.com.
meeting IN CNAME gov.nmzl.com.
data IN CNAME gov.nmzl.com.
center IN CNAME gov.nmzl.com.
hosts文件的配置
127.0.0.1 localhost localhost.localdomain
10.10.10.100 liubo
resolv.conf文件的配置
nameserver 10.10.10.100  |
|