jonathanio / update-systemd-resolved

Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus.
Other
765 stars 94 forks source link

Is there a way to specify a wildcard domain in "dhcp-option DOMAIN" ? #93

Closed max-k closed 1 year ago

max-k commented 3 years ago

I tried to specify it using systemd-resolved syntax (~domain.tld) but it is converted to a simple domain name with a utf-8 character code prefix (\126domain.tld).

It doesn't to come from this script but rather from systemd-resolved DBUS interface but I ask my question just to know as been successful in the process.

Thank you very much.

worldowner commented 1 year ago

~ is added when server sends DOMAIN-ROUTE instead of DOMAIN.

tomeon commented 1 year ago

@max-k -- closing this; please reopen if using dhcp-option DOMAIN-ROUTE domain.tld does not work for you.