|
主从DNS的日志给大家分析一下啦!
主DNS的情况:
[root@dns ~]# grep named /var/log/messages | tail -20
Jun 6 21:57:53 dns named[3301]: exiting
Jun 6 21:57:53 dns named: succeeded
Jun 6 22:00:52 dns named: named 启动 succeeded
Jun 6 22:00:52 dns named[2063]: starting BIND 9.2.4 -u named -t /var/named/chro ot
Jun 6 22:00:52 dns named[2063]: using 1 CPU
Jun 6 22:00:52 dns named[2063]: loading configuration from '/etc/named.conf'
Jun 6 22:00:52 dns named[2063]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 6 22:00:52 dns named[2063]: listening on IPv4 interface eth0, 192.168.1.254 #53
Jun 6 22:00:52 dns named[2063]: command channel listening on 127.0.0.1#953
Jun 6 22:00:53 dns named[2063]: zone 0.in-addr.arpa/IN: loaded serial 42
Jun 6 22:00:53 dns named[2063]: zone 0.0.127.in-addr.arpa/IN: loaded serial 199 7022700
Jun 6 22:00:53 dns named[2063]: zone 1.168.192.in-addr.arpa/IN: loaded serial 1 118053379
Jun 6 22:00:53 dns named[2063]: zone 255.in-addr.arpa/IN: loaded serial 42
Jun 6 22:00:53 dns named[2063]: 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: loaded serial 1997022700
Jun 6 22:00:53 dns named[2063]: zone easy.com/IN: loaded serial 1118053220
Jun 6 22:00:53 dns named[2063]: zone localdomain/IN: loaded serial 42
Jun 6 22:00:53 dns named[2063]: zone localhost/IN: loaded serial 42
Jun 6 22:00:53 dns named[2063]: running
Jun 6 22:00:53 dns named[2063]: zone 1.168.192.in-addr.arpa/IN: sending notifie s (serial 1118053379)
Jun 6 22:00:53 dns named[2063]: zone easy.com/IN: sending notifies (serial 1118 053220)
[root@dns ~]#
[root@dns ~]# dig easy.com ns
; <<>> DiG 9.2.4 <<>> easy.com ns
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40731
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 2
;; QUESTION SECTION:
;easy.com. IN NS
;; ANSWER SECTION:
easy.com. 38400 IN NS mail.easy.com.
easy.com. 38400 IN NS dns.easy.com.
;; ADDITIONAL SECTION:
dns.easy.com. 38400 IN A 192.168.1.254
mail.easy.com. 38400 IN A 192.168.1.253
;; Query time: 237 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Mon Jun 6 22:15:49 2005
;; MSG SIZE rcvd: 95
[root@dns ~]# nslookup
> easy.com
Server: 192.168.1.254
Address: 192.168.1.254#53
Name: easy.com
Address: 192.168.1.254
>
从DNS的情况:
[root@mail ~]# grep named /var/log/messages | tail -20
Aug 28 22:13:47 mail named: named 钖?姩 succeeded
Aug 28 22:13:47 mail named[2115]: starting BIND 9.2.4 -u named -t /var/named/chr oot
Aug 28 22:13:47 mail named[2115]: using 1 CPU
Aug 28 22:13:48 mail named[2115]: loading configuration from '/etc/named.conf'
Aug 28 22:13:48 mail named[2115]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 28 22:13:48 mail named[2115]: listening on IPv4 interface eth0, 192.168.1.25 3#53
Aug 28 22:13:48 mail named[2115]: command channel listening on 127.0.0.1#953
Aug 28 22:13:48 mail named[2115]: zone 0.in-addr.arpa/IN: loaded serial 42
Aug 28 22:13:48 mail named[2115]: zone 0.0.127.in-addr.arpa/IN: loaded serial 19 97022700
Aug 28 22:13:48 mail named[2115]: zone 1.168.192.in-addr.arpa/IN: loaded serial 1118053379
Aug 28 22:13:48 mail named[2115]: zone 255.in-addr.arpa/IN: loaded serial 42
Aug 28 22:13:48 mail named[2115]: 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: loaded serial 1997022700
Aug 28 22:13:48 mail named[2115]: zone easy.com/IN: loaded serial 1118053220
Aug 28 22:13:48 mail named[2115]: zone localdomain/IN: loaded serial 42
Aug 28 22:13:48 mail named[2115]: zone localhost/IN: loaded serial 42
Aug 28 22:13:48 mail named[2115]: running
Aug 28 22:13:48 mail named[2115]: received notify for zone 'easy.com'
Aug 28 22:13:48 mail named[2115]: zone 1.168.192.in-addr.arpa/IN: sending notifi es (serial 1118053379)
Aug 28 22:13:48 mail named[2115]: zone easy.com/IN: sending notifies (serial 111 8053220)
Aug 28 22:13:48 mail named[2115]: received notify for zone 'easy.com'
[root@mail ~]#
关闭主DNS服务器后,在从DNS服务器使用dig和Ping和nslookup命令的结果:
[root@mail ~]# ping mail.easy.com
ping: unknown host mail.easy.com
[root@mail ~]# nslookup
> easy.com
;; connection timed out; no servers could be reached
> exit
[root@mail ~]# dig easy.com ns
; <<>> DiG 9.2.4 <<>> easy.com ns
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@mail ~]#
請問是什麼原因啊! |
|