我在自己的机器上作测试,但用dig>named.ca得到的根域数据库文件老是这样,下面的是我用dig>named.ca命令得到的named.ca文件内容
; <<>> DiG 9.2.2 <<>>
;; global options: printcmd
;; connection timed out; no servers could be reached
不管我用啥命令测试DNS服务器都是;; connection timed out; no servers could be reached
我现在用host或是nslookup或dig命令测试dns都显示;; connection timed out; no servers could be reached
是不是就是因为我的named.ca根域数据库文件没有我的域和IP地址?
下面的是我的测试DNS后的系统日志
Dec 21 16:57:31 localhost 12月 21 16:57:30 named: named 启动 succeeded
Dec 21 08:57:30 localhost named[1941]: no IPv6 interfaces found
Dec 21 08:57:31 localhost named[1941]: listening on IPv4 interface lo, 127.0.0.1#53
Dec 21 08:57:31 localhost named[1941]: listening on IPv4 interface eth0, 192.168.123.123#53
Dec 21 08:57:31 localhost named[1941]: command channel listening on 127.0.0.1#953
Dec 21 08:57:31 localhost named[1941]: running
Dec 21 16:58:30 localhost kernel: application bug: xterm(201 has SIGCHLD set to SIG_IGN but calls wait().
Dec 21 16:58:30 localhost kernel: (see the NOTES section of 'man 2 wait'). Workaround activated.
Dec 21 09:02:41 localhost named[1941]: shutting down: flushing changes
Dec 21 09:02:41 localhost named[1941]: stopping command channel on 127.0.0.1#953
Dec 21 09:02:41 localhost named[1941]: no longer listening on 127.0.0.1#53
Dec 21 09:02:41 localhost named[1941]: no longer listening on 192.168.123.123#53
Dec 21 09:02:41 localhost named[1939]: exiting
Dec 21 17:02:41 localhost 12月 21 17:02:41 named: succeeded
Dec 21 09:02:43 localhost named[2723]: starting BIND 9.2.2 -u named -t /var/named/chroot
Dec 21 09:02:43 localhost named[2723]: using 1 CPU
Dec 21 09:02:43 localhost named[2725]: loading configuration from '/etc/named.conf'
Dec 21 17:02:43 localhost 12月 21 17:02:43 named: named 启动 succeeded
Dec 21 09:02:43 localhost named[2725]: no IPv6 interfaces found
Dec 21 09:02:43 localhost named[2725]: listening on IPv4 interface lo, 127.0.0.1#53
Dec 21 09:02:43 localhost named[2725]: listening on IPv4 interface eth0, 192.168.123.123#53
Dec 21 09:02:43 localhost named[2725]: command channel listening on 127.0.0.1#953
Dec 21 09:02:43 localhost named[2725]: running
那位大侠帮忙解决一下,看看小弟的问题出在那,怎样解决,非常感谢!