Comment 2 for bug 1759014

Nivritti (wildstalker) wrote :

Netplan is only appending DNS Search domains and IP's with dhcp4: set to yes. additionally, its ignoring the command "nmcli con modify ${deviceid} ipv4.ignore-auto-dns yes"

Ubuntu 18.04
effecting netplan/bionic 1.10.1-5build1 amd64

/etc/netplan/01-netcfg.yaml
...
   dhcp4: yes
   nameservers:
        search: [abc.domain.edu, def.domain.edu]
        addresses: [10.100.0.1, 10.100.0.2]

~# systemd-resolve --status
...
  DNS Servers: 10.100.10.30 <---- from dhcp
               10.100.10.20 <---- from dhcp
               10.100.0.1
               10.100.0.2

  DNS Domain: uncc.edu
                      it.domain.edu <---- from dhcp
                      abc.domain.edu
                      def.domain.edu