IP is not resolving while doing nslookup

Fahrid F 201 Reputation points
2020-12-11T10:20:21.5+00:00

Hi

I have removed DNS from my server and I have added the destination host IP in the Hosts file.

After doing NSLOOUP I am getting error as IP is not resolved.

Can someone please help me?

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Windows for business Windows Server User experience Other
Windows for business Windows Server Devices and deployment Configure application groups
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2020-12-14T03:57:25.42+00:00

    Hi,

    Thanks for posting in Q&A platform.

    As Crypt32's answer, the nslookup command does NOT use hosts file but DNS.

    If you remove the DNS, you could use ping instead and it will return the IP provided in your hosts file.

    If you want to run nslookup command to resolved the IP address, please setup the ip for this ___domain in a real DNS Server.

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Vadims Podāns 9,186 Reputation points MVP
    2020-12-11T10:58:57.327+00:00

    This is expected behavior. NSLOOKUP do not use hosts file and use only DNS queries. Since you removed DNS, then NSLOOKUP will return you nothing (negative resposne).

    0 comments No comments

  2. Fahrid F 201 Reputation points
    2020-12-15T06:09:47.427+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.