Solve Could not resolve ‘’ DNS Hostname Problem

Have you ever using apt-get update for the first time in Virtual Machine and return

The troubleshooting I made for the first time was change the /etc/apt/sources.list

but what happen?

This still return same.

Fool me, The problem came from DNS hostname. The default hostname was my FQDN and my FQDN’s DNS still not yet configured.

To solve this problem, I just change the /etc/resolv.conf to public DNS or google DNS, so it will like this:

4 comments… add one
  • Saad

    Great article never seen such descriptive and main to the point article 🙂
    Thankyou so much

  • Garth

    Thanks mate, that was what I read elsewhere, but you hit the spot. Sorted out my system.

    • nadiar

      Glad it help, 🙂

  • Eddy

    Thank you, thank you, thank you!!!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.