locked
nslookup resolves hostname to IP but ping reports host not found in windows server 2016. RRS feed

All replies

  • Hi,
    Do you mean that you can’t ping by hostname in your Windows server 2016?
    In the thread you provided, I noticed that an entry was assigned for each host by dnsmasq. 
    So, I’m wondering does you hostname also assigned by dnsmasq? Or it’s just the hostname of your server 2016 or other machine? 
    Also, I would like to know is your server 2016 a domain member or workgroup member? We’d appreciated it if you can provide more information about your issue.
    I’m wondering can you ping successfully by IP address?
    If yes, you can try to run the following commands in order:
    netsh winsock reset catalog (Reset WINSOCK entries to installation defaults)
    netsh int ip reset reset.log  (Reset TCP/IP stack to installation defaults)
    ipconfig /flushdns  (Flush DNS resolver cache)
    ipconfig /registerdns  (Renew DNS client registration and refresh DHCP leases)
    route /f  (Flush routing table) (reboot required)
    After trying the above steps, you can check whether you can ping by hostname successfully.
    For more information, you can refer to the following link which contains resolutions about this issue:

    Fix “Ping request could not find host” when NSLookup still works

    (Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    Hope this can help you.

    Best regards,

    Phoebe Wu


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Friday, May 15, 2020 8:06 AM
  • Hi Wu My servers (3 in total with this problem) are workgroup servers. For example, if I nslookup google.ae i get proper response from dns server but when I ping google.ae it doesn’t work. when I add that IP which I get from nslookup in host file I am able to browse google.ae. But not otherwise. I have tried the steps which you gave but it did not work. I will check out the link you have provided and see if it helps. Thanks.

    Basheer Syed

    Friday, May 15, 2020 1:39 PM
  • Hi Wu I tried running those commands given in that link but unfortunately it didn’t help. Any other suggestions?

    Basheer Syed

    Saturday, May 16, 2020 7:20 PM
  • Hi,
    Based on my research, we suggest that you can try the following:
    If possible, please patch your system with fully windows updates.
    You can temporarily disable IPv6 on your server to see whether the issue resolves. 
    If the above still doesn't work, we consider that the scenario you meet with need some package capture analysis, which is beyond forum support level. We hope you could understand analysis of network traffic is beyond our forum support level. We can only provide some general suggestions here.
    If your issue is urgent, I would suggest you open a case with Microsoft where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.

    Global Customer Service phone numbers

    Best regards,

    Phoebe Wu


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Monday, May 18, 2020 8:27 AM
  • Hi,
    Just want to confirm the current situations. Was your issue resolved?
    If the information provided is helpful, please mark my previous replies as answered.
    Please feel free to let us know if you need further assistance.
    Best regards, 
    Phoebe Wu

    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Wednesday, May 20, 2020 1:37 AM
  • Hi,

    As this thread has been quiet for a while, we proposed it as ‘Answered’. If the information provided is helpful, please mark it as answered.
    If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
    We’d love to hear your feedback about the solution. Thanks for your understanding and efforts.

    Best regards,

    Phoebe Wu


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Friday, May 22, 2020 1:40 AM
  • Hello there

    Sorry for abandoning this thread. This was strangely solved by adding DNS IPs to the other interface which was management interface. I did not have complete control of the network setup so I am still not clear what was the exact reason but when I added DNS IPs to management interface, I could resolve hostnames and use the internet.


    Basheer Syed

    Monday, July 20, 2020 11:33 PM