Run the following command to check if local DNS caching is enabled:
host -tTXT 2.0.0.127.multi.uribl.com
If caching is NOT enabled the response is:
2.0.0.127.multi.uribl.com descriptive text "127.0.0.1 -> Query Refused. See http://uribl.com/refused.shtml for more information [Your DNS IP: 203.0.113.1]"
To install and use BIND as the local resolver
Install the BIND DNS server component if it's not yet installed:
plesk installer add --components bind
Run named-checkconf to check for syntax error in the configuration files:
named-checkconf
Start the BIND DNS service:
// Centos/RHEL/CloudLinux/AlmaLinux
systemctl restart named-chroot
// Debian/Ubuntu
systemctl restart bind9
Edit the file /etc/resolv.conf adding the the new local nameserver as your first entry. (Note: On Centos/RHEL/Cloudlinux if you are using the networkManager service then if your `/etc/sysconfig/network-scripts/ifcfg-*` reference any DNS entries then the /etc/resolv.conf file will get overwritten on reboot. You should use the nmcli utility instead to set the DNS or remove the DNS entries from your `/etc/sysconfig/network-scripts/ifcfg-*`scripts) :
nameserver 127.0.0.1
Wait a few minutes since your first check and then run the check again:
host -tTXT 2.0.0.127.multi.uribl.com
If everything is working the response should be:
2.0.0.127.multi.uribl.com descriptive text "permanent testpoint"