unresolved host / Upgrade 12 to 14 Ubuntu/ Net Connection fine through browser

complextea

I recently upgraded to 'Trusty' i.e. Ubuntu 14.04. I tried pinging google.com through the terminal.

ping google.com
ping: unknown host google.com

I tried the following:

sudo apt-get remove --purge resolvconf && sudo apt-get install --reinstall resolvconf

to remove and reinstall the resolv config, but to no avail.

Then I found the official bug here: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1308378 I tried to do the following as instructed there:

cd /etc
sudo ln -s /run/resolvconf/resolv.conf

But it gave an error:

ln: failed to create symbolic link ‘./resolv.conf’: File exists

Internet works fine through my firefox browser. In fact, I'm writing this question through the same system.

I set additional DNS servers in the WiFi settings to the google DNS servers:

8.8.8.8, 8.8.4.4

But to no avail.

Please help.

2707974

Meybe is solution for you to change way how to resolve names. Try following

In /etc/NetworkManager/NetworkManager.conf comment out the dns=dnsmasq

sudo nano /etc/NetworkManager/NetworkManager.conf

 [main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq

no-auto-default=00:22:64:4E:6F:70,

[ifupdown]
managed=fals

and restart the NM service

sudo restart network-manager

With this /etc/resolv.conf is no longer dependant on resolvconf package and is updated based on the DNS entries of each connection in the Network Manager

Also you can add nameserver in /etc/resolv.conf. If you not set dns in NM per connection this will be used

sudo nano /etc/resolv.conf

nameserver 8.8.4.4
nameserver 8.8.8.8

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to do a Vagrant upgrade from Ubuntu 12 to 14 (precise64 to trusty64)

From Dev

Access docker container running in coreos on vagrant vm through browser in host ubuntu host

From Dev

Access docker container running in coreos on vagrant vm through browser in host ubuntu host

From Dev

Ping works fine, but no Internet connection in browser

From Dev

100 users works fine, for 200 it gives "javax.net.ssl.SSLHandshakeException" error with "Remote host closed connection during handshake" message

From Dev

Ubuntu 18.04 to 20.04 - Unresolved issue occured while calculating upgrade

From Dev

Outbound telnet connection from Docker container refused but works fine on host

From Dev

My ubuntu connection is so slow but the phone connection is fine on the wifi

From Dev

internet connection stopped working, but wifi connection looks fine (ubuntu 18.04.2)

From Dev

Ubuntu 14 upgrade problem , because i installed ROS in Ubuntu

From Dev

Unable to deploy through capistrano after ubuntu upgrade

From Dev

Cannot upgrade ubuntu: Failed to connect (when inet is fine)

From Dev

Weblogic 12c - Connection was forcibly closed by the remote host

From Dev

rEFind doal boot option disappeared after ubuntu 14 to 16 upgrade

From Dev

Host Unresolved Android

From Dev

Apache (Ubuntu) Virtual host stopped working after upgrade->restart

From Dev

Share a folder on VMWare Ubuntu 14 to a host Windows10

From Dev

run specific IP addresses or host names through OpenVPN connection

From Dev

Virtualbox, ssh from Ubuntu host to Ubuntu guest: connection refused

From Dev

Ubuntu Phone no data network after upgrade OTA-12

From Dev

Ubuntu web browser does not start after upgrade to 16.04

From Dev

Ubuntu Server Wifi connection fails after each sudo apt upgrade

From Dev

Accessing ubuntu virtual machine host from windows browser

From Dev

Accessing ubuntu virtual machine host from windows browser

From Dev

Ubuntu 16.10 - Virtualbox - Hostname resolves with host command but not with ping or in browser

From Dev

Why would my C# app fail on this REST request but but works fine through a browser?

From Dev

Why do I get these .vimrc errors in Ubuntu 14 after upgrade from Ubuntu 13?

From Dev

Ubuntu: Can't connect to host's internet connection using NAT

From Dev

Could not open connection to host (ubuntu server) on port 23, 5432, 3306

Related Related

  1. 1

    How to do a Vagrant upgrade from Ubuntu 12 to 14 (precise64 to trusty64)

  2. 2

    Access docker container running in coreos on vagrant vm through browser in host ubuntu host

  3. 3

    Access docker container running in coreos on vagrant vm through browser in host ubuntu host

  4. 4

    Ping works fine, but no Internet connection in browser

  5. 5

    100 users works fine, for 200 it gives "javax.net.ssl.SSLHandshakeException" error with "Remote host closed connection during handshake" message

  6. 6

    Ubuntu 18.04 to 20.04 - Unresolved issue occured while calculating upgrade

  7. 7

    Outbound telnet connection from Docker container refused but works fine on host

  8. 8

    My ubuntu connection is so slow but the phone connection is fine on the wifi

  9. 9

    internet connection stopped working, but wifi connection looks fine (ubuntu 18.04.2)

  10. 10

    Ubuntu 14 upgrade problem , because i installed ROS in Ubuntu

  11. 11

    Unable to deploy through capistrano after ubuntu upgrade

  12. 12

    Cannot upgrade ubuntu: Failed to connect (when inet is fine)

  13. 13

    Weblogic 12c - Connection was forcibly closed by the remote host

  14. 14

    rEFind doal boot option disappeared after ubuntu 14 to 16 upgrade

  15. 15

    Host Unresolved Android

  16. 16

    Apache (Ubuntu) Virtual host stopped working after upgrade->restart

  17. 17

    Share a folder on VMWare Ubuntu 14 to a host Windows10

  18. 18

    run specific IP addresses or host names through OpenVPN connection

  19. 19

    Virtualbox, ssh from Ubuntu host to Ubuntu guest: connection refused

  20. 20

    Ubuntu Phone no data network after upgrade OTA-12

  21. 21

    Ubuntu web browser does not start after upgrade to 16.04

  22. 22

    Ubuntu Server Wifi connection fails after each sudo apt upgrade

  23. 23

    Accessing ubuntu virtual machine host from windows browser

  24. 24

    Accessing ubuntu virtual machine host from windows browser

  25. 25

    Ubuntu 16.10 - Virtualbox - Hostname resolves with host command but not with ping or in browser

  26. 26

    Why would my C# app fail on this REST request but but works fine through a browser?

  27. 27

    Why do I get these .vimrc errors in Ubuntu 14 after upgrade from Ubuntu 13?

  28. 28

    Ubuntu: Can't connect to host's internet connection using NAT

  29. 29

    Could not open connection to host (ubuntu server) on port 23, 5432, 3306

HotTag

Archive