Windows 2008 R2 nslookup does not resolve ../etc/hosts but ping does

Posted on 2013-01-08
Last Modified: 2013-02-13
I have a strange problem my server has 2 network one for production the one connect to AD, DNS and other for backup, we use our standard name server-bck,  for the server-bck I put only  in the c:\windows\system32\drivers\etc\hosts file not in the DNS server

Strange thing if I ping server-bck it can resolve to the IP, but if  I do the nslookup server-bck, it won't resolve anything, but nslookup will resolve anything on our DNS server.

Anyone know the answer?

Thank you.
Iwan Tamimi
Question by:iwantam
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Accepted Solution

chris2506 earned 100 total points
ID: 38754558
Hi Iwan,

Local host files are just that - local - whereas the nslookup that you're performing looks for nameservers in yor network to resolve dns queries. Without a valid dns entry, server-bck will not resolve despite replying to the ping requests.



Assisted Solution

iwantam earned 0 total points
ID: 38754572
Hey Chris thanks for the very quick response?

Does Windows nslookup work like UNIX nslookup that can be configured to see files an DNS server?


Iwan Tamimi

Assisted Solution

chris2506 earned 100 total points
ID: 38754591
Hi Iwan,

No problem. I don't have much experience with UNIX based systems, but I don't believe it's configurable in the same way. From a quick search it looks like UNIX systems use a file called resolv.conf, which can be edited and presumably therefore configured to see items outside of DNS.

Windows on the other hand isn't configurable in the same way, although it is possible to manually add DNS entries to your DNS server.

Hope this helps,


Author Closing Comment

ID: 38883761
His point is right

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Resolve DNS query failed errors for Exchange
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question