刚才在一台windows上用nslookup看了一下,提示错误:
*** Can't find server name for address 192.168.123.116: Non-existent domain
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.123.116
配置了
/etc/named.conf文件内容:
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forward first;
forwarders {
202.106.0.20;
};
/*
* 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;
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "mydomain.com.cn" IN {
type master;
file "mydomain.com.cn.zone";
allow-update { none; };
};
include "/etc/rndc.key";
/var/named/mydomain.com.cn.zone文件内容如下:
$TTL 86400
@ IN SOA dns.mydomain.com.cn. root.mydomain.com.cn. (
2005022508 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.mydomain.com.cn.
IN MX 10 mail
dns IN A 192.168.123.116
mail IN CNAME dns
www IN CNAME dns
ftp IN CNAME dns
[quote:6442d84ea8="wanglong_jiang"]刚才在一台windows上用nslookup看了一下,提示错误:
*** Can't find server name for address 192.168.123.116: Non-existent domain
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.123.116