我刚刚从OVH得到了一个非托pipe的专用VPS,我没有以前的设置服务器或DNS服务器的经验,但我跟随了几个馅饼,并安装了webmin,并为我的域名创buildNS区域,但现在我有一个奇怪的问题,其中mxtoolbox和intodns.com说,没有NSlogging被发现我的域名,虽然我没有注册ns1.example.com和ns2.example.com与我的域名注册机构(这是networking解决scheme在这种情况下),但它仍然保持失败,我无法访问该网站。 我一直在寻找2天的解决scheme,我还没有得到一个。 另外,我正在使用CentOs 6.3。 这是我从Webmin获得的BINDconfiguration
// // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 127.0.0.1; 198.245.51.xxx;}; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { localhost; any; }; ## IP Range ## allow-transfer { localhost; 198.245.51.xxx; }; ## Slave DNS IP ## recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; forwarders { 198.245.51.xxx; 8.33.137.xxx; }; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; zone "example.org" { type master; file "/var/named/example.org.hosts"; allow-transfer { 8.33.137.xxx; }; also-notify { 8.33.137.xxx; }; }; zone "221.51.245.198.in-addr.arpa" { type master; file "/var/named/198.245.51.xxx.rev"; };
我的IP表规则 : –
我的主机文件: –
Do not remove the following line, or various programs that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 198.245.51.xxx ns1 198.245.51.xxx example.org 198.245.51.xxx ns1.example.org 198.245.51.xxx ns1.example.org.
我的resolv.conf文件 : –
namserver 198.245.51.xxx ns1.example.org 198.245.51.xxx ns2.example.org 8.33.137.xxx nameserver 127.0.0.1 nameserver 213.186.33.xx search ovh.net
intodns.com结果 : –
注意: – 以防万一有关域 example.org的 混淆 ,我只是使用这个别名来掩盖我的域名,但我敢肯定,你们已经明白,只是把它放在那里。
非常感谢您的回复!
更新: –
我的区域文件: –
$ttl 38400 example.org. IN SOA ns1.example.org. admin.example.org. ( 1368243151 10800 3600 604800 38400 ) example.org. IN NS ns1.example.org. example.org. IN A 198.245.51.xxx www.example.org. IN A 198.245.51.xxx ns1.example.org. 30m IN A 198.245.51.xxx example.org. IN NS ns2.example.org. ns2.example.org. IN A 8.33.137.xxx 198.245.51.xxx.example.org. IN PTR ns1 198.245.51.xxx.example.org. IN PTR example.org
我的区域概述 : – 区域
区域 :根区types :根区域 :0 types :主区域 :0000 :: 1 types :主区域 :127.0.0.1 types :主区域 :198.245.51.xxx types :主区域 :localhost主区域 :localhost.localdomain types :主区域 :example.org types :Master;
我的挖掘结果 : –
[xxxx@xxxxxx ~]# dig ns1.example.org ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> ns1.example.org ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19537 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;ns1.example.org. IN A ;; ANSWER SECTION: ns1.example.org. 1800 IN A 198.245.51.xxx ;; AUTHORITY SECTION: example.org. 38400 IN NS ns1.example.org. example.org. 38400 IN NS ns2.example.org. ;; ADDITIONAL SECTION: ns2.example.org. 38400 IN A 8.33.137.xxx ;; Query time: 4 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sat May 11 23:01:48 2013 ;; MSG SIZE rcvd: 100
请让我知道,如果你需要了解更多的信息。
你可能有一个防火墙运行,而我记得CentOS的默认防火墙阻止端口53(虽然我可能在这里是错的)。
更改
allow-query { localhost; any; };
同
allow-query { any; };
也许这会造成一些问题。 同时删除:
forwarders { 198.245.51.xxx; 8.33.137.xxx; };
因为我相信2 IP是你自己的IP。
重新启动绑定,并重新启动后检查,确实与ps -ef | grep bind运行 ps -ef | grep bind 。
所以当你设置你的DNS名称服务器logging时,有两个组件:
1)胶水logging – 当您向注册商注册名称服务器时会发生这种情况。
2)NSlogging – 您需要为example.org或任何您的域创build一个dns区域,并为ns1和ns2创buildAlogging,指向您在Gluelogging中设置的IP。