2

When I'm at home or at work I'd like my laptop to accept the DNS servers offered by the DHCP server but when I'm on a public wireless server at a cafe or coffee place, I'd prefer to use DNS servers I trust.

I can configure systemd-resolved to do one or the other but is there a way to configure it to accept the DNS servers offered by trusted DHCP servers only and defer to given DNS servers otherwise?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.