https://www.freedesktop.org/software/systemd/man/resolved.conf.html#Domains=
"Use the construct "~." (which is composed of "~" to indicate a routing domain and "." to indicate the DNS root domain that is the implied suffix of all DNS domains) to use the system DNS server defined with DNS= preferably for all domains."
Try using this:
https:/ /www.freedeskto p.org/software/ systemd/ man/resolved. conf.html# Domains=
"Use the construct "~." (which is composed of "~" to indicate a routing domain and "." to indicate the DNS root domain that is the implied suffix of all DNS domains) to use the system DNS server defined with DNS= preferably for all domains."
cat /etc/systemd/ resolved. conf.d/ 99-local- fqdn-wa. conf
[Resolve]
DNS=192.0.2.1 192.0.2.2 192.0.2.3
Domains=~.