This isn’t a new request but a re-post of a request dating back a bit under 5 years ago.
Original request: https://bugs.launchpad.net/maas/+bug/1719473
We have added domains to MAAS and domain resources to MAAS (for this, the purpose was to “hijack” domains so that we could just an on premise mirror, basically make deployments going to us.archive.ubuntu.com go to our own server), and with this deployment as far as software installation and pulling of ephimeral images and whatnot works just fine.
However, MAAS is adding all of these domains to /etc/network/interfaces under dns-search, and is thus adding them to /etc/resolve.conf
the bare-metal nodes do not need to search these domains, it is in itself a DNS nameserver with these entries.
Even in a non on-premise world, I can’t imagine how these domains would need to be added to dns search. MAAS has the ability to add single entries with IP addresses for resolution already.