DNS无法起动

发布于 2022-10-02 13:19:45 字数 83 浏览 21 评论 0

我现在用的是RH9,可是我用命令# /etc/rc.d/init.d/named start提示是OK了,可是用#ps -ef 看不到这个进程,不知是什么原因???急

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

等待我真够勒 2022-10-09 13:19:45

我用以下命令提示如下:
# /usr/sbin/rnds start
rndc:connect failed: connection refused
我在这里查找过,有一个和我一样的可是我看了不知是怎样解决的,请大家帮帮忙

梨涡少年 2022-10-09 13:19:45

你要以先看看日志
#cat /var/log/message |grep named
發現問題再看看/etc/named.conf
與/var/named/*

墨洒年华 2022-10-09 13:19:45

对了,看一看日至:

#tail -n20 /var/log/message | grep named

然后在改你的配置文件,大体上就/etc/named.conf
,/var/named/下的正解、反解等配置正确了没有。

心不设防 2022-10-09 13:19:45

对了,看一看日至:

#tail -n20 /var/log/message | grep named

然后在改你的配置文件,大体上就/etc/named.conf
,/var/named/下的正解、反解等配置正确了没有。

还有把你的内容贴出来,让大家看看,才好解决问题:)

So尛奶瓶 2022-10-09 13:19:45

Oct 18 17:59:49 linuxtest named[1615]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 18 17:59:50 linuxtest named[1615]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 18 17:59:50 linuxtest named[1615]: could not configure root hints from 'named.ca': unknown class/type
Oct 18 17:59:50 linuxtest named[1615]: loading configuration: unknown class/type
Oct 18 17:59:50 linuxtest named[1615]: exiting (due to fatal error)
Oct 18 18:10:21 linuxtest named: named shutdown failed
Oct 19 10:46:54 linuxtest named[1613]: starting BIND 9.2.1 -u named
Oct 19 10:46:54 linuxtest named: named startup succeeded
Oct 19 10:46:54 linuxtest named[1613]: using 1 CPU
Oct 19 10:46:54 linuxtest named[1613]: loading configuration from '/etc/named.conf'
Oct 19 10:46:55 linuxtest named[1613]: no IPv6 interfaces found
Oct 19 10:46:55 linuxtest named[1613]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 10:46:55 linuxtest named[1613]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 10:46:55 linuxtest named[1613]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 10:46:55 linuxtest named[1613]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 10:46:55 linuxtest named[1613]: loading configuration: unknown class/type
Oct 19 10:46:55 linuxtest named[1613]: exiting (due to fatal error)
Oct 19 11:10:07 linuxtest 10Ô 19 11:10:07 named: named ¹Ø±Õ failed
Oct 19 11:10:09 linuxtest named[2223]: starting BIND 9.2.1 -u named
Oct 19 11:10:09 linuxtest named[2223]: using 1 CPU
Oct 19 11:10:09 linuxtest named[2223]: loading configuration from '/etc/named.conf'
Oct 19 11:10:09 linuxtest 10ÔÂ 19 11:10:09 named: named Æ&&& succeeded
Oct 19 11:10:09 linuxtest named[2223]: no IPv6 interfaces found
Oct 19 11:10:09 linuxtest named[2223]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 11:10:09 linuxtest named[2223]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 11:10:09 linuxtest named[2223]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 11:10:09 linuxtest named[2223]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 11:10:09 linuxtest named[2223]: loading configuration: unknown class/type
Oct 19 11:10:09 linuxtest named[2223]: exiting (due to fatal error)
Oct 19 11:10:41 linuxtest named: named shutdown failed
Oct 19 11:12:08 linuxtest named: named startup succeeded
Oct 19 11:12:08 linuxtest named[1619]: starting BIND 9.2.1 -u named
Oct 19 11:12:08 linuxtest named[1619]: using 1 CPU
Oct 19 11:12:09 linuxtest named[1619]: loading configuration from '/etc/named.conf'
Oct 19 11:12:09 linuxtest named[1619]: no IPv6 interfaces found
Oct 19 11:12:09 linuxtest named[1619]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 11:12:09 linuxtest named[1619]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 11:12:09 linuxtest named[1619]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 11:12:10 linuxtest named[1619]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 11:12:10 linuxtest named[1619]: loading configuration: unknown class/type
Oct 19 11:12:10 linuxtest named[1619]: exiting (due to fatal error)
Oct 19 11:38:33 linuxtest 10Ô 19 11:38:33 named: named ¹Ø±Õ failed
Oct 19 11:38:35 linuxtest named[1875]: starting BIND 9.2.1 -u named
Oct 19 11:38:35 linuxtest named[1875]: using 1 CPU
Oct 19 11:38:35 linuxtest named[1875]: loading configuration from '/etc/named.conf'
Oct 19 11:38:35 linuxtest named[1875]: no IPv6 interfaces found
Oct 19 11:38:35 linuxtest named[1875]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 11:38:35 linuxtest 10ÔÂ 19 11:38:35 named: named Æ&&& succeeded
Oct 19 11:38:35 linuxtest named[1875]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 11:38:35 linuxtest named[1875]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 11:38:35 linuxtest named[1875]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 11:38:35 linuxtest named[1875]: loading configuration: unknown class/type
Oct 19 11:38:35 linuxtest named[1875]: exiting (due to fatal error)
Oct 19 11:38:37 linuxtest 10Ô 19 11:38:37 named: named ¹Ø±Õ failed
Oct 19 11:38:39 linuxtest named[1904]: starting BIND 9.2.1 -u named
Oct 19 11:38:39 linuxtest named[1904]: using 1 CPU
Oct 19 11:38:39 linuxtest named[1904]: loading configuration from '/etc/named.conf'
Oct 19 11:38:39 linuxtest 10ÔÂ 19 11:38:39 named: named Æ&&& succeeded
Oct 19 11:38:39 linuxtest named[1904]: no IPv6 interfaces found
Oct 19 11:38:39 linuxtest named[1904]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 11:38:39 linuxtest named[1904]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 11:38:39 linuxtest named[1904]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 11:38:39 linuxtest named[1904]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 11:38:39 linuxtest named[1904]: loading configuration: unknown class/type
Oct 19 11:38:39 linuxtest named[1904]: exiting (due to fatal error)
Oct 19 11:41:49 linuxtest named: named shutdown failed
Oct 19 11:43:14 linuxtest named[1620]: starting BIND 9.2.1 -u named
Oct 19 11:43:14 linuxtest named: named startup succeeded
Oct 19 11:43:14 linuxtest named[1620]: using 1 CPU
Oct 19 11:43:14 linuxtest named[1620]: loading configuration from '/etc/named.conf'
Oct 19 11:43:15 linuxtest named[1620]: no IPv6 interfaces found
Oct 19 11:43:15 linuxtest named[1620]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 11:43:15 linuxtest named[1620]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 11:43:15 linuxtest named[1620]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 11:43:15 linuxtest named[1620]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 11:43:15 linuxtest named[1620]: loading configuration: unknown class/type
Oct 19 11:43:15 linuxtest named[1620]: exiting (due to fatal error)
Oct 19 11:53:10 linuxtest named: named shutdown failed
Oct 19 11:54:43 linuxtest named[1618]: starting BIND 9.2.1 -u named
Oct 19 11:54:43 linuxtest named: named startup succeeded
Oct 19 11:54:43 linuxtest named[1618]: using 1 CPU
Oct 19 11:54:44 linuxtest named[1618]: loading configuration from '/etc/named.conf'
Oct 19 11:54:44 linuxtest named[1618]: no IPv6 interfaces found
Oct 19 11:54:44 linuxtest named[1618]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 11:54:45 linuxtest named[1618]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 11:54:45 linuxtest named[1618]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 11:54:45 linuxtest named[1618]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 11:54:45 linuxtest named[1618]: loading configuration: unknown class/type
Oct 19 11:54:45 linuxtest named[1618]: exiting (due to fatal error)
Oct 19 11:55:24 linuxtest named: named shutdown failed
Oct 19 16:57:54 linuxtest named[1619]: starting BIND 9.2.1 -u named
Oct 19 16:57:54 linuxtest named: named startup succeeded
Oct 19 16:57:54 linuxtest named[1619]: using 1 CPU
Oct 19 16:57:55 linuxtest named[1619]: loading configuration from '/etc/named.conf'
Oct 19 16:57:55 linuxtest named[1619]: no IPv6 interfaces found
Oct 19 16:57:55 linuxtest named[1619]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 16:57:55 linuxtest named[1619]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 16:57:55 linuxtest named[1619]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 16:57:55 linuxtest named[1619]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 16:57:55 linuxtest named[1619]: loading configuration: unknown class/type
Oct 19 16:57:55 linuxtest named[1619]: exiting (due to fatal error)
Oct 19 17:18:10 linuxtest named: named shutdown failed
Oct 19 17:36:07 linuxtest named[1619]: starting BIND 9.2.1 -u named
Oct 19 17:36:07 linuxtest named: named startup succeeded
Oct 19 17:36:07 linuxtest named[1619]: using 1 CPU
Oct 19 17:36:07 linuxtest named[1619]: loading configuration from '/etc/named.conf'
Oct 19 17:36:07 linuxtest named[1619]: no IPv6 interfaces found
Oct 19 17:36:07 linuxtest named[1619]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 17:36:08 linuxtest named[1619]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 19 17:36:08 linuxtest named[1619]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 19 17:36:08 linuxtest named[1619]: could not configure root hints from 'named.ca': unknown class/type
Oct 19 17:36:08 linuxtest named[1619]: loading configuration: unknown class/type
Oct 19 17:36:08 linuxtest named[1619]: exiting (due to fatal error)
Oct 19 17:40:39 linuxtest named: named shutdown failed
Oct 20 08:50:21 linuxtest named[1619]: starting BIND 9.2.1 -u named
Oct 20 08:50:21 linuxtest named: named startup succeeded
Oct 20 08:50:21 linuxtest named[1619]: using 1 CPU
Oct 20 08:50:22 linuxtest named[1619]: loading configuration from '/etc/named.conf'
Oct 20 08:50:22 linuxtest named[1619]: no IPv6 interfaces found
Oct 20 08:50:22 linuxtest named[1619]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 08:50:22 linuxtest named[1619]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 08:50:22 linuxtest named[1619]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 08:50:22 linuxtest named[1619]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 08:50:22 linuxtest named[1619]: loading configuration: unknown class/type
Oct 20 08:50:22 linuxtest named[1619]: exiting (due to fatal error)
Oct 20 09:43:29 linuxtest named[1879]: starting BIND 9.2.1 -s
Oct 20 09:43:29 linuxtest named[1879]: using 1 CPU
Oct 20 09:43:29 linuxtest named[1879]: loading configuration from '/etc/named.conf'
Oct 20 09:43:29 linuxtest named[1879]: no IPv6 interfaces found
Oct 20 09:43:29 linuxtest named[1879]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:43:29 linuxtest named[1879]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:43:29 linuxtest named[1879]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:43:29 linuxtest named[1879]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:43:29 linuxtest named[1879]: loading configuration: unknown class/type
Oct 20 09:43:29 linuxtest named[1879]: exiting (due to fatal error)
Oct 20 09:44:24 linuxtest named: named shutdown failed
Oct 20 09:48:47 linuxtest named[1847]: starting BIND 9.2.1 -u named
Oct 20 09:48:47 linuxtest named[1847]: using 1 CPU
Oct 20 09:48:48 linuxtest 10ÔÂ 20 09:48:47 named: named Æ&&& succeeded
Oct 20 09:48:48 linuxtest named[1847]: loading configuration from '/etc/named.conf'
Oct 20 09:48:48 linuxtest named[1847]: no IPv6 interfaces found
Oct 20 09:48:48 linuxtest named[1847]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:48:48 linuxtest named[1847]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:48:48 linuxtest named[1847]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:48:48 linuxtest named[1847]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:48:48 linuxtest named[1847]: loading configuration: unknown class/type
Oct 20 09:48:48 linuxtest named[1847]: exiting (due to fatal error)
Oct 20 09:50:45 linuxtest named[1866]: starting BIND 9.2.1
Oct 20 09:50:45 linuxtest named[1866]: using 1 CPU
Oct 20 09:50:45 linuxtest named[1866]: loading configuration from '/etc/named.conf'
Oct 20 09:50:45 linuxtest named[1866]: no IPv6 interfaces found
Oct 20 09:50:45 linuxtest named[1866]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:50:45 linuxtest named[1866]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:50:45 linuxtest named[1866]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:50:45 linuxtest named[1866]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:50:45 linuxtest named[1866]: loading configuration: unknown class/type
Oct 20 09:50:45 linuxtest named[1866]: exiting (due to fatal error)
Oct 20 09:50:55 linuxtest named[1873]: starting BIND 9.2.1
Oct 20 09:50:55 linuxtest named[1873]: using 1 CPU
Oct 20 09:50:55 linuxtest named[1873]: loading configuration from '/etc/named.conf'
Oct 20 09:50:55 linuxtest named[1873]: no IPv6 interfaces found
Oct 20 09:50:55 linuxtest named[1873]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:50:55 linuxtest named[1873]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:50:55 linuxtest named[1873]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:50:55 linuxtest named[1873]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:50:55 linuxtest named[1873]: loading configuration: unknown class/type
Oct 20 09:50:55 linuxtest named[1873]: exiting (due to fatal error)
Oct 20 09:51:03 linuxtest named[1880]: starting BIND 9.2.1 -s
Oct 20 09:51:03 linuxtest named[1880]: using 1 CPU
Oct 20 09:51:03 linuxtest named[1880]: loading configuration from '/etc/named.conf'
Oct 20 09:51:03 linuxtest named[1880]: no IPv6 interfaces found
Oct 20 09:51:03 linuxtest named[1880]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:51:03 linuxtest named[1880]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:51:03 linuxtest named[1880]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:51:03 linuxtest named[1880]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:51:03 linuxtest named[1880]: loading configuration: unknown class/type
Oct 20 09:51:03 linuxtest named[1880]: exiting (due to fatal error)
Oct 20 09:51:53 linuxtest named[1888]: starting BIND 9.2.1 -s
Oct 20 09:51:53 linuxtest named[1888]: using 1 CPU
Oct 20 09:51:53 linuxtest named[1888]: loading configuration from '/etc/named.conf'
Oct 20 09:51:53 linuxtest named[1888]: no IPv6 interfaces found
Oct 20 09:51:53 linuxtest named[1888]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:51:53 linuxtest named[1888]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:51:53 linuxtest named[1888]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:51:53 linuxtest named[1888]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:51:53 linuxtest named[1888]: loading configuration: unknown class/type
Oct 20 09:51:53 linuxtest named[1888]: exiting (due to fatal error)
Oct 20 09:53:10 linuxtest named[1894]: starting BIND 9.2.1 -f
Oct 20 09:53:10 linuxtest named[1894]: using 1 CPU
Oct 20 09:53:10 linuxtest named[1894]: loading configuration from '/etc/named.conf'
Oct 20 09:53:10 linuxtest named[1894]: no IPv6 interfaces found
Oct 20 09:53:10 linuxtest named[1894]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 09:53:10 linuxtest named[1894]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 09:53:10 linuxtest named[1894]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 09:53:10 linuxtest named[1894]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 09:53:10 linuxtest named[1894]: loading configuration: unknown class/type
Oct 20 09:53:10 linuxtest named[1894]: exiting (due to fatal error)
Oct 20 09:57:37 linuxtest named: named shutdown failed
Oct 20 10:10:59 linuxtest named[1812]: starting BIND 9.2.1 -u named
Oct 20 10:10:59 linuxtest named[1812]: using 1 CPU
Oct 20 10:10:59 linuxtest 10ÔÂ 20 10:10:59 named: named Æ&&& succeeded
Oct 20 10:10:59 linuxtest named[1812]: loading configuration from '/etc/named.conf'
Oct 20 10:10:59 linuxtest named[1812]: no IPv6 interfaces found
Oct 20 10:10:59 linuxtest named[1812]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 10:10:59 linuxtest named[1812]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 10:10:59 linuxtest named[1812]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 10:10:59 linuxtest named[1812]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 10:10:59 linuxtest named[1812]: loading configuration: unknown class/type
Oct 20 10:10:59 linuxtest named[1812]: exiting (due to fatal error)
Oct 20 10:23:57 linuxtest named[1837]: starting BIND 9.2.1
Oct 20 10:23:57 linuxtest named[1837]: using 1 CPU
Oct 20 10:23:57 linuxtest named[1837]: loading configuration from '/etc/named.conf'
Oct 20 10:23:57 linuxtest named[1837]: no IPv6 interfaces found
Oct 20 10:23:57 linuxtest named[1837]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 20 10:23:57 linuxtest named[1837]: listening on IPv4 interface eth0, 192.168.0.25#53
Oct 20 10:23:57 linuxtest named[1837]: dns_master_load: named.ca:1: unknown RR type 'HTML'
Oct 20 10:23:57 linuxtest named[1837]: could not configure root hints from 'named.ca': unknown class/type
Oct 20 10:23:57 linuxtest named[1837]: loading configuration: unknown class/type
Oct 20 10:23:57 linuxtest named[1837]: exiting (due to fatal error)
Oct 20 10:36:31 linuxtest named: named shutdown failed
Oct 20 10:47:58 linuxtest named[1828]: starting BIND 9.2.1 -u named
Oct 20 10:47:58 linuxtest named[1828]: using 1 CPU
Oct 20 10:47:58 linuxtest 10ÔÂ 20 10:47:58 named: named startup succeeded
Oct 20 10:47:58 linuxtest named[1828]: loading configuration from '/etc/named.conf'
Oct 20 10:47:58 linuxtest named[1828]: /etc/named.conf:54: 'options' redefined near 'options'
Oct 20 10:47:58 linuxtest named[1828]: loading configuration: already exists
Oct 20 10:47:58 linuxtest named[1828]: exiting (due to fatal error)
Oct 20 10:48:04 linuxtest 10ÔÂ 20 10:48:04 named: named shutdown failed
Oct 20 10:48:06 linuxtest named[1853]: starting BIND 9.2.1 -u named
Oct 20 10:48:06 linuxtest named[1853]: using 1 CPU
Oct 20 10:48:06 linuxtest named[1853]: loading configuration from '/etc/named.conf'
Oct 20 10:48:06 linuxtest named[1853]: /etc/named.conf:54: 'options' redefined near 'options'
Oct 20 10:48:06 linuxtest named[1853]: loading configuration: already exists
Oct 20 10:48:06 linuxtest named[1853]: exiting (due to fatal error)
Oct 20 10:48:06 linuxtest 10ÔÂ 20 10:48:06 named: named startup succeeded
Oct 20 10:50:34 linuxtest 10ÔÂ 20 10:50:34 named: named shutdown failed
Oct 20 10:50:36 linuxtest named[1895]: starting BIND 9.2.1 -u named
Oct 20 10:50:36 linuxtest named[1895]: using 1 CPU
Oct 20 10:50:36 linuxtest named[1895]: loading configuration from '/etc/named.conf'
Oct 20 10:50:36 linuxtest named[1895]: /etc/named.conf:54: 'options' redefined near 'options'
Oct 20 10:50:36 linuxtest named[1895]: loading configuration: already exists
Oct 20 10:50:36 linuxtest named[1895]: exiting (due to fatal error)
Oct 20 10:50:36 linuxtest 10ÔÂ 20 10:50:36 named: named startup succeeded
Oct 20 11:35:32 linuxtest named: named shutdown failed

ら栖息 2022-10-09 13:19:45

[root@linuxtest log]# cat /etc/named.conf |more
// 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; };
};

zone "0.168.192.in-addr.arpa" IN {
         type master;
         file "named.192.168.0";
};

zone "linuxtest.com" {
        type master;
        file "named.linuxtest.com";
};
//#include "/etc/rndc.key";

情深缘浅 2022-10-09 13:19:45

# cat /var/named/named.local
$TTL    86400
@       IN      SOA     dns.linuxtest.com.  root.dns.linuxtest.com.  (
                                      2001071500 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      dns.linuxtest.com.

      1       IN      PTR     localhost.

二手情话 2022-10-09 13:19:45

[root@linuxtest log]# cat /var/named/named.ca
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">;
<!-- saved from url=(0043)ftp://ftp.rs.internic.net/domain/named.root -->;
<HTML>;<HEAD>;
<META http-equiv=Content-Type content="text/html; charset=gb2312">;
<META content="MSHTML 6.00.2600.0" name=GENERATOR>;</HEAD>;
<BODY>;<RE>;;       This file holds the information on root name servers needed to
;       initialize cache of Internet domain name servers
;       (e.g. reference this file in the "cache  .  &file&"
;       configuration file of BIND domain name servers).
;
;       This file is made available by InterNIC
;       under anonymous FTP as
;           file                /domain/named.root
;           on server           FTP.INTERNIC.NET
;       -OR-                    RS.INTERNIC.NET
;
;       last update:    Jan 29, 2004
;       related version of root zone:   2004012900
;
;
; formerly NS.INTERNIC.NET
;
.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
;
; formerly NS1.ISI.EDU
;
.                        3600000      NS    B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET.      3600000      A     192.228.79.201
;
; formerly C.PSI.NET
;
.                        3600000      NS    C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
;
; formerly TERP.UMD.EDU
;
.                        3600000      NS    D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
;
; formerly NS.NASA.GOV
;
.                        3600000      NS    E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
;
; formerly NS.ISC.ORG
;
.                        3600000      NS    F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET.      3600000      A     192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
.                        3600000      NS    G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
.                        3600000      NS    H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
;
; formerly NIC.NORDU.NET
;
.                        3600000      NS    I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17
;
; operated by VeriSign, Inc.
;
.                        3600000      NS    J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET.      3600000      A     192.58.128.30
;
; operated by RIPE NCC
;
.                        3600000      NS    K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET.      3600000      A     193.0.14.129
;
; operated by ICANN
;
.                        3600000      NS    L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET.      3600000      A     198.32.64.12
;
; operated by WIDE
;
.                        3600000      NS    M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
; End of File
</PRE>;</BODY>;</HTML>;

毁梦 2022-10-09 13:19:45

老大你傳這多,看的很累

重新啟動named應是

#/sbin/service named restart

看你的幾個文件,可能是從哪個html文件上直接拷貝的

太亂了

你把原始的拿回來,對照稍微改改
再重啟
看日志
再改
。。。。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文