To illustrate: if I have a global DNS server 1.1.1.1, and a VPN networkd device with
DNS=2.2.2.2 Domains= ~company
Then trying to resolve google.com should *only* hit 1.1.1.1, not 2.2.2.2.
If OTOH I would have configured
Domains= ~company ~.
then it's okay to hit both.
To illustrate: if I have a global DNS server 1.1.1.1, and a VPN networkd device with
DNS=2.2.2.2
Domains= ~company
Then trying to resolve google.com should *only* hit 1.1.1.1, not 2.2.2.2.
If OTOH I would have configured
Domains= ~company ~.
then it's okay to hit both.