1
0
Fork 0
knowledge-base/KB/Linux/Server/DNS.md
2024-12-09 20:19:31 +01:00

685 B

creation date tags
2022-01-08
note
linux
dns

Please use a local unbound which is even better!

Start and enable

systemd-networkd
systemd-resolved

You probably want to force DNS in /etc/systemd/resolved.conf

[Resolve]
DNS=...

# keep this empty to fail resolving if primary DNS doesn't work
FallbackDNS=

Only if you want to prevent any network manager to change DNS servers, then execute sudo chattr -i /etc/resolv.conf; sudo nano /etc/resolv.conf; sudo chattr +i /etc/resolv.conf to insert the following content:

options timeout:1
nameserver 80.241.218.68
nameserver 46.182.19.48
nameserver 8.8.8.8
nameserver 1.1.1.1