Включение systemd-resolved в режиме кеширования

dnf install systemd-resolved
nano /etc/systemd/resolved.conf
DNS=сюда прописать нужные DNS-сервера
Cache=no-negative
DNSStubListener=yes

systemctl enable systemd-resolved
systemctl start systemd-resolved
systemctl status systemd-resolved

cp /etc/resolv.conf /root/backups/etc/resolv.conf
ln -svi /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

systemd-resolve --statistics

 

Опубликовано
В рубрике Linux