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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HP Laser Jet Errors 10 95
Accessing WinXp drive on Win10: access denied 7 106
Can't map network drive from Windows 10 Enterprise to Samba network share 8 138
Nimble Storage 3 69
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
In a recent article here at Experts Exchange (, I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

809 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