Skip to content

Systemd-resolved

Файл: /etc/NetworkManager/conf.d/dns.conf

[main]
dns=none
Terminal window
systemctl restart NetworkManager
Terminal window
systemctl enable --now systemd-resolved.service

Файл: /etc/systemd/resolved.conf

[Resolve]
DNS=94.140.14.14#dns.adguard-dns.com 94.140.15.15#dns.adguard-dns.com
FallbackDNS=9.9.9.9#dns.quad9.net 8.8.8.8#dns.google 1.1.1.1#one.one.one.one
DNSSEC=yes
DNSOverTLS=yes
Cache=yes
LLMNR=no
MulticastDNS=no
ReadEtcHosts=yes

Файл: /etc/resolv.conf

nameserver 127.0.0.53
Terminal window
systemctl restart systemd-resolved.service
Terminal window
resolvectl

Примечание: В строке “Protocols:” будет +DNSOverTLS DNSSEC=yes/supported