Comment 1 for bug 1886768

Revision history for this message
Dan (codecando-x) wrote :

Someone on a different forum suggested i use this configuration:

network:
  version: 2
  renderer: NetworkManager
  wifis:
    wlp3s0:
      dhcp4: true
      access-points:
        accesspointgoeshere:
          password: passwordgoeshere
      nameservers:
        addresses: [8.8.4.4,8.8.8.8,1.1.0.0,1.1.1.1]

However then when i run: nmcli dev show | grep DNS
The service providers DNS servers are before the custom ones i have defined:

IP4.DNS[1]: 75.75.75.75
IP4.DNS[2]: 75.75.76.76
IP4.DNS[3]: 8.8.4.4
IP4.DNS[4]: 8.8.8.8
IP4.DNS[5]: 1.1.0.0
IP4.DNS[6]: 1.1.1.1

I could do it all in Network Manager, i am however looking for a config file solution so that i can script it.

Does netplan support this configuration?

Thanks