Hello
Thank you for posting in Q&A forum.
When nslookup works but ping and other applications cannot resolve a domain name, it usually points to a DNS configuration issue.
Here are some steps to troubleshoot this problem:
- Flush DNS Cache:
ipconfig /flushdns
- Ensure your network adapter is configured to use the correct DNS server.
- Check the hosts file located at C:\Windows\System32\drivers\etc\hosts to ensure there are no incorrect entries that might be causing the issue.
- Open the Network Connections window (ncpa.cpl), right-click your network adapter, select Properties, and ensure the DNS settings are correct.
- Ensure that the DNS suffix is correctly configured. You can add a dot at the end of the domain name in the ping command to force a DNS lookup:
ping example.com.
- Reset Network Settings:
netsh winsock reset
netsh int ip reset
- Temporarily disable any firewall or security software to see if they are blocking DNS requests.
- Try using the fully qualified domain name (FQDN) in the ping command. For example:
ping hostname.yourdomain.com
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.