I would like to use DHCP to assign an IP address to my server, but specify the DNS servers manually. I tried the following simple configuration:
network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: yes nameservers: [184.108.40.206,220.127.116.11]
netplan apply I check the nameservers with
systemd-resolve --status and it shows:
DNS Servers: 18.104.22.168 22.214.171.124 192.168.1.1
The last is the DNS server provided by DHCP, which I do not want to be in the list.
Does netplan have a way to accomplish this?