网站偶尔无法访问 - DNS 问题

网站偶尔无法访问 - DNS 问题

我的网站有问题(http://www.visikid.plwww.visikid.com)。我有 webmin 和 virualmin。我有一个域作为别名,这个别名(主机:www.visikid.com)有时会几分钟不可用。这可能是 DNS 问题,因为 chrome 显示 105 (net::ERR_NAME_NOT_RESOLVED)。

我该如何解决此问题?

什么原因导致网站有时几分钟不可用(DNS问题)?

答案1

首先,在一般的互联网上找不到 ns1.visikid:

tsavo:~ mcd$ host -t any visikid.com ns1.visikid.com
host: couldn't get address for 'ns1.visikid.com': not found

您的名称服务器似乎正在应答,但是,有一个 SOA 记录指向 timesolutions.timesolutions.pl 而不是 ns1.visikid.com/ns2.visikid.com:

tsavo:~ mcd$ host -t any visikid.com 213.239.222.20
Using domain server:
Name: 213.239.222.20
Address: 213.239.222.20#53
Aliases: 

visikid.com mail is handled by 30 ASPMX3.GOOGLEMAIL.com.
visikid.com mail is handled by 30 ASPMX4.GOOGLEMAIL.com.
visikid.com mail is handled by 30 ASPMX5.GOOGLEMAIL.com.
visikid.com mail is handled by 10 ASPMX.L.GOOGLE.com.
visikid.com mail is handled by 20 ALT1.ASPMX.L.GOOGLE.com.
visikid.com mail is handled by 20 ALT2.ASPMX.L.GOOGLE.com.
visikid.com mail is handled by 30 ASPMX2.GOOGLEMAIL.com.
visikid.com descriptive text "v=spf1 a mx include:aspmx.googlemail.com include:_spf.google.com ~all"
visikid.com has SOA record timesolutions.timesolutions.pl. root.timesolutions.timesolutions.pl. 1265887100 10800 3600 604800 38400
visikid.com name server timesolutions.timesolutions.pl.
visikid.com has address 213.239.222.20
tsavo:~ mcd$ host -t ns visikid.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases: 

visikid.com name server timesolutions.timesolutions.pl.

但该域尚未配置:

tsavo:~ mcd$ host timesolutions.timesolutions.pl
Host timesolutions.timesolutions.pl not found: 3(NXDOMAIN)

$ host timesolutions.timesolutions.pl. 213.239.222.20
Using domain server:
Name: 213.239.222.20
Address: 213.239.222.20#53
Aliases: 

Host timesolutions.timesolutions.pl not found: 5(REFUSED)

调整 visikid.com 上的 SOA 记录,或者修复 timesolutions.pl 的 ACL(如果您要继续使用它)。

答案2

您可以使用 dig 或 nslookup(在 Windows 上)对您的域名进行 DNS 查找:

dig myhost.example.com

或者

nslookup myhost.example.com

如果该名称无法解析为 IP,您可能需要将此问题报告给您的 DNS 提供商。

答案3

Cory 的想法是正确的,但是这只会查询您的 ISP 的 DNS 服务器,而不是您域的 DNS 服务器。

一些建议:当您的网站出现 DNS 问题时,您能访问其他网站吗?找出您域的所有 DNS 服务器,当您遇到问题时,查询每个 DNS 服务器以找到没有响应的服务器。如果它们都没有响应,但您仍然可以查询其他 DNS 服务器,那么您需要将此情况报告给您的托管商。

答案4

使用任何DNS测试工具会告诉你你的问题。最大的问题是:visikid.pl 只有一个名称服务器。如果有任何如果出现问题(网络、机器等),域就会消失。

这是 Zonecheck 报告的第一个致命错误:

% zonecheck visikid.pl 
ZONE  : visikid.pl.
NS <= : timesolutions.timesolutions.pl. [213.239.222.20]
NS    : ns1.visikid.pl. [213.239.222.20]
NS    : ns2.visikid.pl. [213.239.222.20]

   _____________
 ,-------------.|
~~~~ |    fatal    || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 `-------------'
f> All addresses should be distinct
 | Adv: ZoneCheck
 |   To avoid losing all connectivity with the authoritative DNS in case
 | of network outage it is advised to host the DNS on different networks.
 | 
 | Ref: IETF RFC2182 (Abstract)
 |   The Domain Name System requires that multiple servers exist for every
 | delegated domain (zone). This document discusses the selection of
 | secondary servers for DNS zones. Both the physical and topological
 | location of each server are material considerations when selecting
 | secondary servers. The number of servers appropriate for a zone is also
 | discussed, and some general secondary server maintenance issues
 | considered.
 `----- -- -- - -  -
 :   The nameservers timesolutions.timesolutions.pl., ns1.visikid.pl.,
 : ns2.visikid.pl. are using the same IP address (213.239.222.20).

相关内容