3

I know that systemd-resolve --status lists all my connections and their DNS servers and nmcli connection show <connection> | grep -i dns will list the priority of the DNS connections. But is there a single command I can run that will list all DNS servers and their priority/order?

4

it is stupid, but you can't!

it follow internal rules to choose the "correct" dns server, like if they worked or failed in the past, interface order or even what domains allocated to each interface. It's broken by design and a hell to manage with some vpn setups

the best you can do is check the /run/systemd/resolve/resolv.conf , that is the resolv.conf file generated by systemd-resolved

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.