Missing search domain in AppVMs

It seems that the search domain which is configured by sys-net network manager will not be inherited to any AppVM. Inside /etc/resolv.conf of each AppVM the search entry is missing while inside sys-net it is there.
The problem occurs either if network manger gets it via DHCP or by static configuration.
Currently I am using the ugly workaround with overwriting the resolv.conf inside /rw/config/rc.local of earch AppVM but I hope there is a better solution.

Related github issue:

I configured my system as it is described by @the2nd but that’s only working when the AppVM is currently running. If it’s halted and started after NetworkManager start it will not get the search domain from sys-net. Or do I have misunderstood something?

You can listen for domain-unpaused events in dom0 and run the update_dns_search.sh script when qubes will be unpaused like this:

1 Like

Thank you @MellowPoison that’s much better now even if I have to put the update_dns_search.sh into every template.