I've had Ubuntu Server 18.04 up and running for a couple weeks. For a while my network interface never connected. I eventually got a proper netplan YAML file setup. I can now ping my servers IP, not hostname, from another computer on my network and also ping outside IPs, not domain names. As stated I am not able to use any domain names. So, things like
ping google.com and
sudo apt update fail. I believe it's a DNS issue but am not 100% sure.
ping: google.com: Temporary failure in name resolution
sudo apt update:
Err3: http://archive.ubuntu.com/ubuntu bionic InRelease Temporary failure in resolving 'archive.ubuntu.com'
There are a few more errors when updating but they all fail to resolve 'archive.ubuntu.com'.
My netplan file is
network: version: 2 renderer: networkd ethernets: enp0s25: dhcp4: no dhcp6: no addresses: [192.168.1.40/22] gateway4: 192.168.1.1 nameservers: addresses: [184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124]
I've seen a lot of post and articles talk about
/etc/resolv.conf, however mine has always been non-exist. If I would try to
cat out the contents I would get an error
no such file or directory. I think this is where my problem is but I also do not understand enough about linux networking to realize what's wrong.
Some people were able to fix this issue by creating or fixing their symbolic links to
/etc/resolv.conf. However, they used
/run/resolvconf/resolv.conf, and other files. Those files/services don't exist on my machine. I only have one networking-related file under
/run located at
/run/systemd/network/10-netplan-enp0s25.network. It's contents are:
[Match] Name=enp0s25 [Network] LinkLocalAddressing=ipv6 Address=126.96.36.199/22 Gateway=192.168.1.1 DNS=188.8.131.52 DNS=184.108.40.206 DNS=220.127.116.11 DNS=18.104.22.168
I created a symbolic link from the
/etc/resolv.conf to the
/run/systemd/network/10-netplan-enp0s25.network. The contents of my
resolv.conf are exactly the same as
I am confused by what else needs to be done to configure my machine. Everything I have found so far has been very conflicting and hasn't helped.