Caching DNS for spamassassin

Discussion in 'Installation/Configuration' started by Stelios, Nov 22, 2020.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,
    I've got an email server which sends massive amount of emails due to large mailing lists.
    I've read on Spamassassin web site that a local caching DNS will help a lot in terms of speed.
    In my multi-server setup I've got already 2 dns servers.
    All servers are connected through a private network at 10.0.0.0/16.
    If I edit the /etc/resolv.conf and remove my provider IPs and instead use the 10.0.0.9 & 10.0.0.10 which are my dns servers all lookup fail.
    Example:
    Code:
    root@email3:~# nslookup bbc.co.uk
    ;; Got recursion not available from 10.0.0.10, trying next server
    ;; Got recursion not available from 10.0.0.9, trying next server
    Server:        213.133.99.99
    Address:    213.133.99.99#53
    
    Non-authoritative answer:
    Name:    bbc.co.uk
    Address: 151.101.128.81
    Name:    bbc.co.uk
    Address: 151.101.192.81
    Name:    bbc.co.uk
    Address: 151.101.0.81
    Name:    bbc.co.uk
    Address: 151.101.64.81
    ;; Got recursion not available from 10.0.0.10, trying next server
    ;; Got recursion not available from 10.0.0.9, trying next server
    Name:    bbc.co.uk
    Address: 2a04:4e42:200::81
    Name:    bbc.co.uk
    Address: 2a04:4e42:400::81
    Name:    bbc.co.uk
    Address: 2a04:4e42:600::81
    Name:    bbc.co.uk
    Address: 2a04:4e42::81
    I guess I have to put:
    allow-recursion { 10.0.0.0/16; };
    to allow the local queries? If yes, on which file I should add it?

    Thanks
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Th0m likes this.
  3. Stelios

    Stelios Active Member HowtoForge Supporter

    Thanks @Taleman ,I've installed and setup unbound and works great.
     

Share This Page