Ubuntu 18.04 cannot ping or nslookup outside the LAN.
When I do nslookup www.google.com
it hangs for a while and returns ;; connection timed out; no servers could be reached
I cannot ping www.google.com but I can ping 10.100.10.1, my gateway. The server is using netplan. When I do a netplan apply
, I don't get errors. Here is my netplan config file.
network:
version: 2
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [10.100.10.26/24]
gateway4: 10.100.10.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
Here is my resolv.conf:
nameserver 8.8.8.8
nameserver 8.8.4.4
I can't install apps because it cannot resolve DNS.
This is an image from a ESXI implementation. Other images in the network respond to all network requests except this linux client.
ip addr
andip route
from the running system. Last should display a line similar todefault via 10.100.10.1 dev ens160
; tryping 10.100.10.1
(or whatever your actual default route is) and see if that works.