DNS无法正常工作,甚至IP也无法正常工作 [英] DNS is not working even IP is working

查看:122
本文介绍了DNS无法正常工作,甚至IP也无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

突然我的DNS名称不起作用
到目前为止,我们正在使用www.XYZ.com访问我们的服务器
但现在它无法正常工作,但是如果我使用服务器IP地址访问它,则可以正常工作
但是我需要使用DNS名称,它如何工作以及到底是什么问题<




谢谢与问候
Sudheer.N

Hi all,

suddenly my DNS name is not working
up to now we are accessing our server with www.XYZ.com
but now it is not working but if i access with server IP address it is working
But i need using DNS name how can it work and what is exactly problem <




Thanks & Regards
Sudheer.N

推荐答案

如果要出于测试目的手动更新个人DNS,则可以编辑主机文件以包含服务器IP地址的映射以及您想要的网址.请注意,这是一种测试解决方案,而不是您应该永久使用的解决方案.这是有关如何执行此操作的链接:

http://www.bleepingcomputer.com/tutorials/hosts-files-explained/ [ ^ ]

如果您的DNS似乎有问题,则可能是您的DNS服务器,也可能是您注册DNS信息的方式.尝试更改DNS服务器.例如,Google提供了免费的DNS服务器供您使用(其中一个是8.8.8.8).还有免费的(例如4.2.2.3等)

要检查DNS服务器的内容,请打开命令提示符,然后键入"nslookup".这将选择您的默认DNS服务器,然后允许您对其进行查询.输入您的URL(仅www.xyz.com部分,而不是HTTP://部分).查看返回的IP(如果有).这将告诉您您的DNS是否已正确注册您的名称/IP.您还可以通过键入服务器8.8.8.8"(切换到8.8.8.8服务器)来切换DNS服务器(例如,尝试使用Google来查看其是否具有正确的信息).然后再次运行相同的URL检查以查看结果.
If you want to update your personal DNS manually for testing purposes, you can edit your hosts file to contain a mapping for the IP address of your server and the URL you want. Note that this is a testing solution, not one you should use permanently. Here is a link on how to do something like this:

http://www.bleepingcomputer.com/tutorials/hosts-files-explained/[^]

If your DNS seems to be an issue, it might be your DNS server or it might be how you registered the DNS information. Try changing DNS servers. For instance, Google has provided free DNS servers that you can use (one is 8.8.8.8). There are also free ones out there (like 4.2.2.3, etc.)

To check the contents of a DNS server, open a command prompt and type "nslookup". This will select your default DNS server and then allow you to query it. Enter your URL (just the www.xyz.com portion, not the HTTP:// part). See what IP is returned (if any). This will tell you if your DNS has properly registered your name/IP. You can also switch DNS servers (for example, to try out Google''s to see if they have the right info) by typing "server 8.8.8.8" (to switch to the 8.8.8.8 server). Then run the same URL check again to see the results.


这篇关于DNS无法正常工作,甚至IP也无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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