# How to setup non-liar DNS in Archlinux systemd-resolved? 2023-10-15 First time I have to deal with an OS that don't let you setup your public DNS (aka non-liar DNS) in the traditional way, so I write this reminder. ## /etc/resolv.conf It is a symlink. If you don't want troubles, don't touch it ;) ``` $ ls -la /etc/resolv.conf lrwxrwxrwx 1 root root 37 14 oct. 10:17 /etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf ``` ## NetworkManager Playing with NetworkManager settings just drives me crazy because it lets you do it, but nothing will change... ## Systemd-resolved So in the end, it is just as simple as creating a new file: /etc/systemd/resolved.conf.d/dns_servers.conf Here is an example with FDN open DNS resolvers: ``` [Resolve] DNS=80.67.169.12 2001:910:800::12 Domains=~. ``` ## Some links => https://www.fdn.fr/actions/dns/ French Data Network open DNS resolvers => https://wiki.archlinux.org/title/Systemd-resolved Systemd-resolved on ArchLinux wiki => ./ <-- ## Commentaires / Comments ? => https://lists.sr.ht/~fredg/public-inbox Envoyer un email à la liste de discussion publique / Send a mail to the public Inbox --- => https://creativecommons.org/licenses/by-sa/4.0/ -- Copyright © 2008–2023 Frédéric Galusik - CC BY-SA 4.0 --