Setting up a full service second server as secondary dns

Discussion in 'Installation/Configuration' started by Gerry F, Mar 7, 2024.

  1. Gerry F

    Gerry F Member

    (sorry I posted this in the Linus installation forum first by mistake)

    I have, at the moment, 1 main ISPConfig with Panel, mail, web, dns, files, db.
    I just added a second server *without* the panel, but has mail, web, dns, file and db (installed using expert mode).
    The two boxes appear to be talking back and forth. I can see the second server in the dropdowns on the main ISPConfig Panel.
    However, I'm trying to add php 7.4 onto the second server and when I to go System -> Additional PHP Versions -> Add new PHP version, in the server drop-down I'm only seeing the main server in the "Server" drop-down. If I search I get 'No matches found"
    Is this a bug?
    The second box is acting as ns2 and that is working.
    When I go to System I see both servers displayed.
    I can go to Monitor and I see both servers report in the System State screen, and I can select a server to monitor between the two just fine.
    And while checking Sites > Websites > Add new website, I'm unable to select the second server.
    I'm wondering if setting "Is mirror of Server" was the wrong thing to do to make the second server ns2? Is that why I can't select server2?
    If I set that is mirror option back to None, will that break my dual DNS server setup?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you set the second server to be a mirror of the first one, which means the additional PHP versions of the first system are also the ones of the second one (as that's what a mirror is). Therefore it makes no sense to try to add a PHP version for a mirror and ISPConfig therefore does not allows you to do this for this reason.

    Same as with PHP. You likely set the second server to be a mirror, therefore it receives all sites from first server automatically. Tryong to add a site there makes no sense and ISPConfig detects this and does not show this option for that reason.

    If you want to use that server as a dedicated non-marrored system, then you must undo this checkbox. You will have to do some cleanup then manually or even reinstall it from scratch, as the mirroring you used caused the system to mirror the config from the first server, and this config will not get removed by disabling mirroring. You can run the system as a s secondary DNS server by using secondary DNS records in ISPConfig; this is the recommended option today anyway, as it allows DNSEC, which mirroring does not allow.
     
  3. Gerry F

    Gerry F Member

    Ya, that's a big oops, as all I was after was making server2 a full blown web server and a secondary dns server. The instructions I was following for the secondary dns said to make server2 a mirror of the first.

    I can certainly start over. I do plan on adding a third server later. In the end i'll have 3 servers, all providing web, mail, dns, ftp, etc. I will most likely make all three nameservers.

    I'm still not clear how to do that! Do I just add the A and NS records into the main domain and like magic the boxes know to share the DNS?

    Thanks for your response.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    ISPConfig does not do magic, at least not in current version.
    There are two ways to set up secondary DNS server. First is mirroring, but mirroring mirrors all services on the server, so ns1 should be running only name service.
    Second way is to use Secondary Zones. Read it in ISPConfig manual. This way you set up a zone on your main name server, and add secondary zone. The secondary zone is hosted on your second (or third) name server host.
     
  5. Gerry F

    Gerry F Member

    Thank you, I purchased the manual a week or more ago and found section 5.13 that answers my question.
    I have added a Secondary DNS Zone and I should be all done!
    Now time to set up a few domains on server2.
    Thanks again.
     
  6. Gerry F

    Gerry F Member

    So it's a day later and I'm not sure what's happening with the status of the secondary dns server.
    On my home linux box, if I do
    dig @ns1.interpool-hosting.com bernardcabinetry.ca any
    I get the full response.
    If I do
    dig @ns2.interpool-hosting.com bernardcabinetry.ca any
    It basically looks like a null response.
    The main server had 10 domains active on it and I'm using buddyns.com to assist with my secondary DNS servers until I get my own ns2 and ns3 machines working.
    After adding the second full hosting box that talks with the first box yesterday, I added a Secondary DNS Zone on the main server.
    Client is Me, server is server2.interpool-hosting.com (with an A record for ns2 and a ns record in interpool-hosting.com), zone is interpool-hosting.com. and NS is 142.202.189.87
    If i do
    dig @ns2.interpool-hosting.com interpool-hosting.com any
    I get the full correct response, but when I query any of the other domains on the main box they are null responses.
    So last night I added a domain and website to the second server through ISPConfig on the main server. I set it up to use only ns1.interpool-hosting.com and ns2-interpool-hosting.com for the name servers on ISPConfig and the registrar name servers are set to the same.
    I can dig on ns1 and ns2 using this domain and get the full correct responses.
    Interesting. But why aren't the other domains getting a full response when I query ns2?
    What can I get out of the system log that may help resolve this issue?
    I'm using 'live' data for easier trouble shooting but if you think I should disguise these domain names and IP's let me know.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you add secondary zone for each of those zones? Did you remember allow xfer?
    In what way is buddyns.com involved here? I can help with setting up two name servers with ISPConfig, but buddydns is strange to me.
     
    Gerry F likes this.
  8. Gerry F

    Gerry F Member

    Oh, it's it *that* simple? No, I just added a secondary for my main domain... so I just have to add a secondary for every domain on the main box?

    Buddyns.com is a free secondary dns service, I am using them for additional secondary DNS servers until I get all mine up and running. I wouldn't be concerned about them as they will eventually be removed. All I had to do was set up a free account, I added 3 of their name servers to my registrar DNS records and to my DNS records on ISPConfig. I just had to put their IP numbers into the 'allowed' column.

    I will go add the secondary zone now. Thanks.
     
  9. Gerry F

    Gerry F Member

    This worked perfectly. I can't thank you enough! I didn't have to add anything into the "Allow zone transfers to
    these IPs (comma separated list)" box
     

Share This Page