Solved

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

Posted on 2013-01-08
4
1,133 Views
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
0
Comment
Question by:iwantam
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
chris2506 earned 100 total points
Comment Utility
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.


Thanks,

Chris
0
 

Assisted Solution

by:iwantam
iwantam earned 0 total points
Comment Utility
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?

Regards,

Iwan Tamimi
0
 
LVL 3

Assisted Solution

by:chris2506
chris2506 earned 100 total points
Comment Utility
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,

Chris
0
 

Author Closing Comment

by:iwantam
Comment Utility
His point is right
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now