1. Add Google’s Name Servers to the bottom of the resolv.conf file and try again
    • vim /etc/resolv.conf
      • nameserver
      • nameserver
  2. 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.
  3. If you are still having issues, check the “/etc/hosts” file for any entries that would override the domain name you are connecting to.
  4. To gather more details as to what Name Server your server is using:\
    • dig example.com
      • OR
    • nslookup example.com
  5. Check to ensure /etc/nsswitch.conf is using the hosts file and Name Servers to resolve IPs
    • cat /etc/nsswitch.conf
      • You should see a line like:
        • hosts:         files dns
  6. Check all of the above on a different server or at “whatsmydns.com” to ensure that the DNS entries exist.
  7. If you are still having issues then the network is misconfigured

Leave a Reply

Your email address will not be published. Required fields are marked *