It seems to me that each of maas, cloud-init and netplan could do better here.
a.) maas declares 'global' nameserver/dns info.
this is kind of silly in that such a thing doesn't really exist.
maas has the information necessary to declare the nameserver on the
device with the address that has a route to it.
b.) cloud-init is currently sticking that global definition on an
interface that doesnt have an address. so cloud-init could do better.
c.) netplan or systemd-networkd could realize enp0s25 interface is "up"
and that it should have its nameservers used.
It seems to me that each of maas, cloud-init and netplan could do better here.
a.) maas declares 'global' nameserver/dns info.
this is kind of silly in that such a thing doesn't really exist.
maas has the information necessary to declare the nameserver on the
device with the address that has a route to it.
b.) cloud-init is currently sticking that global definition on an
interface that doesnt have an address. so cloud-init could do better.
c.) netplan or systemd-networkd could realize enp0s25 interface is "up"
and that it should have its nameservers used.