I am using the Virtual Machine vmware with ubuntu. I've added a network adapter - eth1 and have assigned an ip address and mac address. but now that I try to connect to the internet, it doesn't work. for instance I have tried ping , but it prints out this message.

root@ubuntu:~# ping -c 1 www.bbc.co.uk

ping: www.bbc.co.uk: Temporary failure in name resolution

Any advice what the fix might be for this issue, please?

  • The order in which Ubuntu discovers the adapters may not be the same as VMware. Make sure that eth1 isn't the old eth0. – stark Sep 14 '18 at 17:52
  • How did the adapters get the names eth0 and eth1? They should have other consistent names, such as ens160 or ens192. Do you have open-vm-tools installed? – Michael Hampton Sep 14 '18 at 18:16
  • not sure about the names. It has self assigned automatically. When I call ifconfig -a, then both eth0 and eth1 are apreaing. – NewSharper Sep 14 '18 at 18:36

This indicates that there is a problem with DNS name resolution.

Look at /etc/resolv.conf. Probably your second interface announces a DNS server that overwrites the entry from the DNS server on the first interface, but the second DNS server is not reachable.

If you run your own resolver in the VM, the second interface may set a default route that doesn't work.

  • well, when I go to the network connections, there is Wired Connection 2 (for etho ) and Wired Connection 1 (for eth1 ). The setup is correct. – NewSharper Sep 14 '18 at 18:30
  • in the file /etc/resolv.conf, there is only one line nameserver the rest is comments. – NewSharper Sep 14 '18 at 18:30
  • I called this command systemd-resolve --status at the end it says current scope: none – NewSharper Sep 14 '18 at 18:34
  • If the setup is correct, then everything is fine. Does your resolver at work or not? Is it the correct address for your resolver? – RalfFriedl Sep 15 '18 at 7:36
  • Not sure how I can check if it is the correct address for the resolver. – NewSharper Sep 15 '18 at 9:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.