我有一个使用Virtualmin / Webmin的webserver (Ubuntu12.04和LAMP)。因为我刚从一个Cpanel系统中搬出来,所以我正在做配置DNS的噩梦!
使用intoDNS.com,失败的报告如下:
Mismatched NS records WARNING: One or more of your nameservers did not return any of your NS records.
DNS servers responded ERROR: One or more of your nameservers did not respond: The ones that did not respond are: 123.123.123.123 213.251.188.141x
Multiple Nameservers ERROR: Looks like you have less than 2 nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7. Having 2 nameservers is also ok by me.
Missing nameservers
reported by your nameserver You should already know that your NS records at your nameservers are missing, so here it is again:
ns1.mydomain.com. sdns2.ovh.net.
SOA record No valid SOA record came back!
MX Records
WWW A Record ERROR: I could not get any A records for www.mydomain.com!
在我的域注册员(Namec堆)中,我将ns1.mydomain.com
注册为一个名称服务器,指向正在运行bind9
的web服务器的IP地址。域是用DNS、ns1.mydomain.com
和sdns2.ovh.net
设置的。sdns2.ovh.net
是辅助DNS服务器(从mydomain.com
指向我的web服务器的IP地址)。
Webserver服务器域:mydomain.com
Webserver服务器主机名:ns4000000.ip-123-123-123.net
Webserver服务器IP:123.123.123.123
在Virtualmin下,我编辑了默认的虚拟服务器模板,
ns1.mydomain.com
ns1.mydomain.com
接下来,我使用该服务器模板创建了一个虚拟服务器。
这就是我所做的,但它仍然不起作用!有什么想法吗?我被困了好几天了,谢谢你的帮助!
* bind9 is running
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
named 6966 bind 20u IPv6 338583 0t0 TCP *:domain (LISTEN)
named 6966 bind 21u IPv4 338588 0t0 TCP localhost.localdomain:domain (LISTEN)
named 6966 bind 22u IPv4 338590 0t0 TCP ns4000000.ip-123-123-123.net:domain (LISTEN)
named 6966 bind 512u IPv6 338582 0t0 UDP *:domain
named 6966 bind 513u IPv4 338587 0t0 UDP localhost.localdomain:domain
named 6966 bind 514u IPv4 338589 0t0 UDP ns4000000.ip-123-123-123.net:domain
(不知道213.186.33.99
是怎么到这里来的)
nameserver 127.0.0.1
nameserver 213.186.33.99
search ovh.net
主机123.123.123(我的web服务器的IP)
13.60.245.198.in-addr.arpa domain name pointer ns4000000.ip-123-123-123.net.
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
99.33.186.213.in-addr.arpa name = cdns.ovh.net.
Authoritative answers can be found from:
33.186.213.in-addr.arpa nameserver = ns.ovh.net.
33.186.213.in-addr.arpa nameserver = dns.ovh.net.
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; connection timed out; no servers could be reached
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; connection timed out; no servers could be reached
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; connection timed out; no servers could be reached
; <<>> DiG 9.8.1-P1 <<>> mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 43540
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mydomain.com. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 11 11:30:09 2012
;; MSG SIZE rcvd: 30
; <<>> DiG 9.8.1-P1 <<>> ns1.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31254
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;ns1.mydomain.com. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 11 11:30:16 2012
;; MSG SIZE rcvd: 34
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "mydomain.com" {
type master;
file "/var/lib/bind/mydomain.com.hosts";
allow-transfer {
127.0.0.1;
localnets;
};
};
options {
directory "/var/cache/bind";
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
// allow-recursion { 127.0.0.1; };
// transfer-source;
};
zone mydomain.com/IN: loaded serial 1349965194
zone localhost/IN: loaded serial 2
zone 127.in-addr.arpa/IN: loaded serial 1
zone 0.in-addr.arpa/IN: loaded serial 1
zone 255.in-addr.arpa/IN: loaded serial 1
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:20000
ACCEPT tcp -- anywhere anywhere tcp dpt:webmin
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:imaps
ACCEPT tcp -- anywhere anywhere tcp dpt:imap2
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3s
ACCEPT tcp -- anywhere anywhere tcp dpt:pop3
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:submission
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
发布于 2012-10-11 16:52:52
您来自named-checkconf -z
的输出表明,/var/lib/bind/mydomain.com.hosts
中存在语法错误,这是您实际上没有发布的唯一文件。检查文件并修复文件中的任何错误。
发布于 2014-01-03 02:27:56
要调试服务器问题,请始终在重新启动服务后检查日志:
尾-f /var/log/消息
或
尾-f /var/log/syslog
ctrl+C中止
或者只显示syslog的最后20条记录。
尾-n 20 /var/log/syslog
https://serverfault.com/questions/437338
复制相似问题