I have an Odroid C2 - a single board computer running 18.04 minimal for ARM. Originally, it was using NetworkManager + systemd-resolved to manage network connections, but since I use only Ethernet and always connected to the same network, I find it a little bit overkill, so I disable both of them and moved to Netplan. Here is my /etc/netplan/02-networkd.yaml:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: yes
As you can see, it is a simple DHCP configuration. Here is the result of using that config:
# netplan ip leases eth0
ADDRESS=10.0.0.4
NETMASK=255.255.255.0
ROUTER=10.0.0.1
SERVER_ADDRESS=10.0.0.1
T1=7200
T2=12600
LIFETIME=14400
DNS=10.0.0.1
NTP=10.0.0.1
DOMAINNAME=vault
CLIENTID=fff75f76ac00020000ab11a7b5e398b7e20ac7
IP address and all interface parameters set correct. The only problem I have is with DNS. I found that netplan does not update /etc/resolve.conf
even it has all obligatory information in the leas.
Is there a way to make Netplane update/configure /etc/resolve.conf
with DNS information it receives from DHCP without using NetworkManager or resolved?
Here is some additional info:
# ls -lA /etc/resolv.conf
-rw-r--r-- 1 root root 20 Apr 21 00:13 /etc/resolv.conf
# cat /etc/resolv.conf
nameserver 10.0.0.1
search vault
ls -al /etc/resolv.conf
andcat /etc/resolv.conf
andresolvectl
(or system-resolve --status). Start comments to me with @heynnema or I may miss them. – heynnema Apr 20 '19 at 20:20systemd-resolve --status
. Give me a couple of minutes to put together a quick answer for you. Are you using VPN? – heynnema Apr 20 '19 at 21:25