如何测试我的DNS和站点配置 [英] How can I test my DNS and site configuration

查看:58
本文介绍了如何测试我的DNS和站点配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从我的网站用户那里收到一些消息,说他们不能在家中访问它.

I've received a few messages from users of my site that they can not access it from home.

他们可以从IP访问服务器,但不能通过域名访问服务器.

They can access the server from the IP, but not by the domain name.

我认为这与DNS配置有关.我大约在4年前在自己的服务器上设置了自己的DNS服务器,我可能不应该这样做,而且我不确定所有配置是否正确.有很多人可以毫无问题地访问该网站,但是有些用户会找不到服务器".

I think it has something to do with the way my DNS is configured. I setup my own DNS server about 4 years ago on my server, which I probably should not have done, and I'm not sure if everything is configured correctly. There are plenty of people who can access the site without any problems, but some users get 'server can not be found'.

服务器详细信息:小型本地托管公司中的Windows 2003托管服务器.

Server Details: Windows 2003 co-located server at a small local hosting company.

是否有可以测试并提供配置建议的良好工具或站点?当这个问题对我和许多其他用户都有效时,我该如何测试呢?我应该问不能访问该网站的用户什么样的问题?

Are there good tools or sites that can test and provide configuration recommendations? How do I test this problem when it works fine for me and so many other users? What type of questions should I ask users that can't access the site?

如果第一台服务器不工作,我可以提供/指向另一台可以使用的DNS服务器吗?

Can I provide / point to another DNS server that can be used if the first server isn't working?

谢谢!

推荐答案

尽管如此,这里还是有一些指针:

Nevertheless here some pointers:

您可以问用户的问题:

  1. 运行以下命令: nslookup test.company.com .结果应该是他们可以通过IP访问的IP.如果是错误的IP或没有IP,则此主机名 A / CNAME 记录不会正确传播到外界.

  1. Run the following command: nslookup test.company.com. The result should be the IP they could access by IP. If it's a wrong IP or no IP, then this hostname A / CNAME record isn't propagated correctly to the outside world.

可能是ipv4/v6问题.也许DNS通过 AAAA 记录解析为ipv6 IP,并且您的ISP(或介于两者之间的任何提供商)尚不正确支持ipv6.在Windows下,您可以 ping -6 ping -4 来查看它是否可以解决所有问题.

It could be a ipv4/v6 problem. Maybe the DNS resolves to a ipv6 IP by AAAA record and your ISP (or any provider inbetween) doesn't support ipv6 correctly yet. Under windows, you can ping -6 or ping -4 to see if it resolves to anything at all.

可能的解决方法:

告诉您的用户将您服务器的IP硬编码到他们的HOSTS文件中...

Tell your users to hardcode the IP of your server into their HOSTS file...

尽管如此,DNS问题通常仍然存在于公司的基础架构中(例如,无法正确传播DNS通知,您的注册服务商处的DNS服务器错误,DNS服务器上的DNS配置错误...)

DNS problems are usually lying at the companies infrastructure though (e.g. not propagating the DNS notifications correctly, wrong DNS servers at your registrar, wrong DNS configuration on your DNS server...)

这篇关于如何测试我的DNS和站点配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆