|
|
/etc/named.conf如下:
// generated by named-bootconf.pl
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; };
};
include "/etc/rndc.key";
zone "kdy.mil" IN {
type master;
file "kdy.mil.hosts";
allow-update { none; };
};
/var/named/kdy.mil.hosts如下:
$ttl 38400
kdy.mil. IN SOA proxy3. foxbobby.kdy.mil. (
1112062102
10800
3600
604800
38400 )
kdy.mil. IN NS proxy3.
www.kdy.mil. IN A 24.85.144.1.
kdy.mil. IN MX 5 proxy3.kdy.mil
~
~
~
vi /etc/resolv.conf如下:
nameserver 211.92.184.130
nameserver 24.85.144.1
search proxy3
~
请大家帮忙看看!
[root@proxy3 root]# service named restart
停止 named: [ 确定 ]
启动 named: [ 确定 ]
[root@proxy3 root]# host www.kdy.mil
Host www.kdy.mil not found: 3(NXDOMAIN)
[root@proxy3 root]#
~ |
|