Add Google’s Name Servers to the bottom of the resolv.conf file and try again
If this did not resolve the issue then move Google’s public Name Servers to the top of this file, comment out the other lines, and try again. *** Do not comment out lines in large environments as they may be critical for other applications***
If this resolved the issue then there was at least 1 alternative Name Server that was throwing the DNS searches off.
If you are still having issues, check the “/etc/hosts” file for any entries that would override the domain name you are connecting to.
To gather more details as to what Name Server your server is using:\
Check to ensure /etc/nsswitch.conf is using the hosts file and Name Servers to resolve IPs
You should see a line like:
hosts: files dns
Check all of the above on a different server or at “whatsmydns.com” to ensure that the DNS entries exist.
If you are still having issues then the network is misconfigured