DNS Replication

Bob2020

New member
Joined
May 19, 2021
Messages
7
Good day

I am having issues where I have installed the latest version of Directadmin.
I modified my named.conf.options as follows.

Code:
options {
        // allow-transfer { none; };
        allow-query { any; };
        allow-notify { 2.2.2.2; };
        allow-transfer { 2.2.2.2; };
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        // forwarders {
        //      0.0.0.0;
        // };

        //========================================================================
        // If BIND logs error messages about the root key being expired,
        // you will need to update your keys.  See https://www.isc.org/bind-keys
        //========================================================================
        dnssec-validation auto;

        listen-on-v6 { any; };
};

I then installed a new directslave server as per this script https://github.com/afrizal-id/directslave-install

And this is how the named.conf file looks like

Code:
options {
        listen-on port 53 { any; };
        listen-on-v6 port 53 { none; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        recursing-file  "/var/named/data/named.recursing";
        secroots-file   "/var/named/data/named.secroots";
                allow-query     { any; };
                allow-notify    { 1.1.1.1; };
                allow-transfer  { 1.1.1.1; };

But when I add a domain into DirectAdmin it does not update the domain to my directslave server.

Anything I am missing?

Any advice will appreciated.
 
So the issue is not at any stage firewall.
You have to remember that you will still need to add the Direct slave server under Multi Server Setup after folling the instructions.
I missed that in the documentatioon.

Regards
 
Well.. what OS do you use? Because normally that file is called named.conf and not named.conf.options.

Next to that, you have your system open, why? You don't need the allow-notify and allow-transfer with Directslave.
Code:
allow-recursion { localnets; };
allow-transfer {"none";};
is better and saver. Unless you use other (non-da) servers to transfer data.

Directslave is working like Bob2020 says, via the multiserver setup from Directadmin, so via port 2222. You have to set port 2222 open on your Directslave server and configure your DA server to login with Directslave via the multiserver setup.
 
Back
Top