DNS confusion

Discussion in 'Installation/Configuration' started by Stelios, Sep 17, 2020.

Tags:
  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,
    Is been quite confusing the way the DNS works under ISPconfig or at least to me.
    I've got 2 DNS servers.
    All my servers in the past were able to sync from master to slave without having to add the same records on the slave.
    Under ISPconfig I believe if I'm not wrong that I have to add them manually to the slave?
    When I click under "Secondary DNS zone" and add new zone afterward the form among others is asking the server name and the IP address.
    Which one I should add? The one on the master (ns1) dns or the details of the secondary?
    Also, the "Allow zone transfers to these IPs (comma separated list)" what's the point of it when it doesn't transfer the zones from the master?

    Thanks a lot
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    That's wrong, you never have to add individual records of a zone twice in ISPConfig. Either use server mirroring, which does not support dnssec yet, or simply add a secondary zone record, which then automatically mirrors all zone changes.
     
  4. Stelios

    Stelios Active Member HowtoForge Supporter

    @till I've added the main DNS entry on dns1 which works fine.
    I've added as a secondary DNS on dns1 an entry with the same DNS-zone name, the IP of the dns1 under NS (Ip-address), and selected my dns2 server from the drop-down menu. The active is also checked.
    I click saved, wait a little bit until it gets done but nothing is happening on dns2.
    Bind is running fine on that; it just doesn't transfer nor create any zone file.
    I've checked under /etc/bind and /etc/bind/slaves --> empty.

    Thanks
     
  5. Stelios

    Stelios Active Member HowtoForge Supporter

    The only relative entry is under named.conf.local which has:
    Code:
    root@dns2:/etc/bind# cat named.conf.local
    
    zone "status-guru-host.com" {
            type slave;
            masters {my-dns1-ip;};
            allow-transfer {none;};
            file "/etc/bind/slave/sec.mydomain.com";
    };
    but sec.mydomain.com doesn't exist under /etc/bind/slave/
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Did you allow zone transfer to dns2?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    That#s ok and all what ISPConfig has to do, the remaining thing is bind internals. Have you set the IP of the slave node in the allow transfer field of the primary dns zone in ispconfig? If not, the secondary server is not allowed to copy the zone data.
     
  8. Stelios

    Stelios Active Member HowtoForge Supporter

    @Th0m on dns2 when I create the zone? To add the IP of the dns1 under "Allow zone transfers to
    these IPs"
    This is what you mean?

    @till the primary zone has enabled the allow transfer field with the IP of the dns2
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Check syslog file of the ns2 to find out why bind is unable to create the slave zone
     
  10. Stelios

    Stelios Active Member HowtoForge Supporter

    I had the wrong IP on allow transfer......sorry for this. It works fine now.
    Thank you all for your help. The assistant on the forum is amazing.
     
    Th0m likes this.

Share This Page