install secondary dns on a new server debian 12

Discussion in 'Installation/Configuration' started by Xzave, Jun 22, 2024.

  1. Xzave

    Xzave Member

    first I install ispconfig with the script here: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ and all is fine.
    after that I install in ispconfig the second dns

    primary dns xzave.belabori.net, (5.135.143.37)
    secondary dns xzave2.belabori.net (178.33.254.48)

    nano /etc/hosts

    Code:
    127.0.0.1       localhost.localdomain   localhost
    ::1     localhost       ip6-localhost   ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    
    
    
    178.33.254.48   xzave2.belabori.net     xzave2
    127.0.1.1       xzave.belabori.net      xzave
    127.0.1.1       ns325559.ip-5-135-143.eu        ns325559
    
    in ispconfig there is a place for secondary:

    upload_2024-6-22_10-27-2.png


    is there steps that i forget? because
    Code:
    dig gifts-custopolis.com @xzave2.belabori.net
     connection timed out; no servers could be reached
    
    
    the dns zone of belabori.net:

    upload_2024-6-22_10-35-53.png
    is this link is good for me to continue: https://www.howtoforge.com/how-to-r...and-secondary-with-ispconfig-3-debian-squeeze
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your Domain does not use ISPConfig servers; according to your screenshot, it uses OVH servers. So you can not create the DNS zones in ISPConfig as the authoritative DNS server of the zone is at ovh.

    Besides that, you added a subdomain of the zone that's managed by OVH as a secondary zone, this can't work and makes no sense as you would add a domain you want to provide secondary DNS service for there. Maybe you should familiarize yourself with what DNS is and how it works, as such basic knowledge is really helpful if you want to run your own DNS servers, and this is also not ISPConfig specific.

    Also, @Taleman has a detailed tutorial on how to set up a DNS zone in ISPConfig: https://www.howtoforge.com/tutorial/setting-up-your-own-name-service-with-ispconfig/
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe you should consider to just stick with OVH name servers for the start and wait setting up your own DNS servers until you are more familiar with DNS. You do not need your own DNS servers to host websites and email.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to create a secondary DNS zone for gifts-custopolis.com, then you must first create a primary DNS zone for
    gifts-custopolis dot com in ISPConfig on the primary DNS server, and then you create a secondary zone for it on the secondary server. as this secondary zone is for gifts-custopolis dot com. you must enter that zone in the zone field, in your screenshot you entered the secondary DNS server hostname there instead.
     

Share This Page