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 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

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,...

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

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

How can I enable third party anti-virus signatures within Warden to improve the ClamAV detection rate?

Warden supports enabling third party anti-virus signatures to improve the detection rate. These...

How can I enable the Rule2XSBody plugin to speed up anti-spam rules by compiling them into native code?

Install the required packages Install the required packages and compile our rules into native...