Skip to content

Instantly share code, notes, and snippets.

@agusmakmun
Last active January 22, 2017 02:27
Show Gist options
  • Save agusmakmun/9d3872cc072f3bc502a12fa66176f9c5 to your computer and use it in GitHub Desktop.
Save agusmakmun/9d3872cc072f3bc502a12fa66176f9c5 to your computer and use it in GitHub Desktop.

For Ubuntu

These errors indicate that there is some problem with DNS.

  • check cat /etc/resolv.conf for your DNS settings.
  • And add following name server in /etc/resolv.conf for temporary or in /etc/resolvconf/resolv.conf.d/head for permanent
nameserver 8.8.8.8
nameserver 8.8.4.4
  • To add these two name server address in resolv.conf

    • run command sudo gedit /etc/resolv.conf
    • Copy above two line of nameserver paste on last line of resolv.conf
    • Ctrl+S to save.
  • Note: If you add name server only /etc/resolv.conf then when computer is restarted then /etc/resolv.conf is in previous stage. So, to store these nameservers permanently, use following method :

    • run command sudo gedit /etc/resolvconf/resolv.conf.d/head
    • Copy above two lines of nameserver and paste on last line of /etc/resolvconf/resolv.conf.d/head
    • Ctrl+S to save.
    • Re-connect internet connection

More Detail On https://wiki.archlinux.org/index.php/Network_Debugging#DNS_Servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment