Since upgrading to 18.04 from 16.04 I can't connect to websites. I understand with netplan that resolv.conf is no longer used. I can ping all sites with ip addresses and tie into server via ssh. I had to ceate /etc/netplan 01-netcfg.yaml. Which checks out as valid yaml but when I sudo netplan apply I get an error of "Error in network definition //etc/netplan/01-netcfg.yaml line 4 column 15: expected mapping" My yaml is as follows and appears as observed samples.
# This file describes the network interfaces available on your system # For more information, see netplan(5). network: ethernets: addresses: "192.168.1.161" dhcp4: false enp3s0: ~ gateway4: "192.168.1.1" nameservers: addresses: - "18.104.22.168" - "22.214.171.124" renderer: networkd version: 2
What am I doing wrong? Any help would be greatly appreciated. I have limited knowledge of linux so examples are much appreciated. Tom