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 "shdmt.net" IN {
type master;
file"shdmt.zone";
};
zone "159.168.192.in-addr.arpa" IN {
type master;
file "shdmt.local";
};
include "/etc/rndc.key";
反向解析 shdmt.local内容
@ IN SOA dns.shdmt.net root.dns(
20080219 ;serial
28800 ;refresh
7200 ;retry
604800 ;expire
86400 ;minimum
)
@ IN NS dns.shdmt.net
237 IN PTR dns.shdmt.net
日志是:
Feb 21 13:15:19 dns named[3244]: starting BIND 9.2.4 -u named -t
/var/named/chroot
Feb 21 13:15:19 dns named[3244]: using 1 CPU
Feb 21 13:15:19 dns named[3244]: loading configuration from '/etc/named.conf'
Feb 21 13:15:19 dns named[3244]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 21 13:15:19 dns named[3244]: listening on IPv4 interface eth0,
192.168.159.237#53
Feb 21 13:15:19 dns named[3244]: command channel listening on 127.0.0.1#953
Feb 21 13:15:19 dns named[3244]: zone 0.0.127.in-addr.arpa/IN: loaded serial
1997022700
Feb 21 13:15:19 dns named[3244]: zone 159.168.192.in-addr.arpa/IN: loaded
serial 2008021901
Feb 21 13:15:19 dns named[3244]: zone localdomain/IN: loaded serial 42
Feb 21 13:15:19 dns named[3244]: zone localhost/IN: loaded serial 42
Feb 21 13:15:19 dns named[3244]: zone shdmt.net/IN: loaded serial 2008021901
Feb 21 13:15:19 dns named[3244]: running
Feb 21 13:15:19 dns named[3244]: zone shdmt.net/IN: sending notifies (serial
2008021901)
Feb 21 13:41:47 dns sshd(pam_unix)[3261]: session opened for user root by root