nslookup命令错误“server:unknown” [英] nslookup command error "server: unknown"

查看:2483
本文介绍了nslookup命令错误“server:unknown”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,


我在Windows Server 2008上安装DNS服务器。


但是当我运行"nslookup localhost"时


我总是得到服务器:未知。


例如:


nslookup localhost


服务器:未知


地址:10.63.6.2


名称:localhost.netact.noklab.net


地址:127.0.0.1


那里真正的问题是什么?


非常感谢!



Br,


Fiona

解决方案

您好Fiona,本地主机名称解析在DNS本身内处理。  Localhost不是DNS识别的名称。 它将尝试在你的netact.noklab.net域下查找名称'localhost'。


如果你输入命令:nslookup 127.0.0.1那么它将解析为一个名字通过查询本地DNS服务器。


键入IPconfig / all以确定您的DNS服务器,并确保已设置它们,或者DHCP正确地将它们分配给您的主机。


NSlookup命令本身与ping localhost -a相同。 这当然不是反向查找的目的,因为它在域中不存在。 您应该使用is as ping 127.0.0.1 -a。 这将通过查询域然后知道它确实是您的本地主机的域为您提供正确的
反向查找。 它不会提供名称,因为这是IP堆栈中的本地地址。


这确实不是DNS或其设计的问题。 似乎你只需要正确使用命令。


例如,如果你键入以下内容:nslookup
www.yahoo.com
 它将查询您的本地DNS服务器,然后您的DNS服务器将其转发到下一个服务器上(使用.com根提示)并从那里递减。 这很可能会在某个其他DNS服务器
的某处缓存,从而提供快速回报。 


希望这有助于



Hi experts,

I install DNS server on windows Server 2008.

But when i run "nslookup localhost"

I always get Server: unknown.

Such as :

nslookup localhost

Server: Unknown

Address: 10.63.6.2

Name: localhost.netact.noklab.net

Address: 127.0.0.1

What's the real problem there?

Thanks so much!

Br,

Fiona

解决方案

Hi Fiona, localhost name resolution is handled within DNS itself.  Localhost is not a DNS recognized name.  It will try to look under your domain of netact.noklab.net for the name 'localhost'.

If you type in the command: nslookup 127.0.0.1 then it will resolve to a name by querying your local DNS server.

Type IPconfig /all to determine your DNS servers and ensure that you have them set or that DHCP is assigning them correctly to your host.

The NSlookup command by itself is the same thing as doing a ping localhost -a.  This of course is not the purpose of a reverse lookup as it does not exist in the domain.  You should use is as ping 127.0.0.1 -a.  This will provide you a correct reverse lookup by querying the domain and then the domain realizing that it is indeed your local host.  It will not provide a name as this is a local address in the IP stack.

This really isn't an issue with DNS or it's design.  Seems that you just need to use the command correctly.

For instance, if you type the following: nslookup www.yahoo.com it will query your local DNS server and then your DNS server will forward it onto the next server (by use of the .com root hint) and recurse down from there.  This will more than likely be cached somewhere on some other DNS server along the way thus providing a swift return. 

Hope this helps


这篇关于nslookup命令错误“server:unknown”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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