|
大家好: 请教一个关于DNS 的问题
RedHat enterprise AS 4
我的DNS文件如下:
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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 "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "test.net" IN {
type master;
file "test.net.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.zone";
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; };
};
include "/etc/rndc.key";
正向:
$TTL 86400
@ IN SOA x.test.net. root.x.test.net.(
2006031800;
10800;
3600;
360000;
86400 ) ;
IN NS x.test.net.
x IN A 192.168.0.3
xx IN A 192.168.0.3
www IN CNAME x.test.net.
ftp IN CNAME x.test.net.
反向:
$TTL 86400
@ IN SOA x.test.net. root.x.test.net. (
2006031800 ;
28800;
14400;
3600000;
86400 ) ;
IN NS x.test.net.
3 IN PTR x.test.net.
3 IN PTR xx.test.net.
这是一本书上的范例,按照书上的实验, ping 192.168.0.3和 ping x.test.net都可以通过.但是,我的ping x.test.net却显示 unknow host x.test.net 请问,问体出在哪里啊?
我已经把本机的DNS地址设置为 192.168.0.3
谢谢各位啦. |
|