[systemd-devel] resolved and persistent routing domains

Igor Bukanov igor at mir2.org
Wed Jan 22 10:10:07 UTC 2020


Hi,

I have OpenVPN setup to connect to an intranet. The setup scripts push
to systemd-resolved a DNS configuration for the intranet including the
list of routing domains. This makes sure that the names from those
domains are only resolved  using nameservers from the intranet.

But when VPN is switched off, the rules are reset. So internal names
are leaked to external nameservers if I use them accidentally in a
web-browser. Is it possible to prevent that? For example, like keeping
the domains and nameservers even when the link is down or disaapeares
until the new settings for the link are pushed to the resolved?


More information about the systemd-devel mailing list