How can I setup a local caching DNS resolver to speed up DNS queries used by Amavis?

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"
  • dns, optimize, performance, cache
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How can I change the interface language of the extension?

You can change the interface language under Settings -> Application Settings -> Locale...

How can I disable admin email notifications in Amavis?

Amavis has different default options for controlling where virus, spam, banned file attachments,...

Where are the configuration files for Warden located?

Centos/RHEL/CloudLinux/AlmaLinux Configuration files: // amavis (Content Filter Settings)...

How can I override the score for a specific rule in Warden?

To Override a Rule Score Navigate to Warden -> Rules -> Click on Add then select the...

How can I whitelist or blacklist a mail server from greylisting?

To Whitelist a Mail Server From Greylisting Navigate to Warden -> Settings ->...