Support for a Third Name Server

Discussion in 'Feature Requests' started by sonoracomm, Apr 15, 2007.

  1. sonoracomm

    sonoracomm New Member

    Hi Folks,

    Please don't take this as a criticism, just a feature request. ;-)

    It would be very helpful to me to be able to have a third nameserver.

    In my application, we slave two other high-volume name servers from our ISPconfig machine to keep the load low and make things more secure and reliable. We then point all the domains at the two slave servers...the ISPconfig name server is not even accessible to end-users. My partner calls this a 'hidden' name server.

    What I have to do is edit the /root/ispconfig/isp/conf/pri.domain.master file by hand. Further, I'm told I have to add the third nameserver at the _top_ of the list of other words, I can't add the third nameserver in the 'manual edits' section.

    The problem this creates is this: each time I upgrade ISPconfig, I have to manually edit the file again AND I have to make a change to each domain using the web interface and click 'save' to regenerate each zone file with the third NS. This is quite tedious.

    I suspect there is a script I could run to regenerate all of the zone files at once, but...

    Thanks for ISPconfig and thanks for listening.

  2. falko

    falko Super Moderator ISPConfig Developer

    Did you use one of the "Perfect Setups" to installl your system? Then there shouldn't be any problems with BIND.

    You can modify the template file /root/ispconfig/isp/conf/pri.domain.master wherever you want, so you can add a third name server at the top.
    The line at the bottom about modifications is for the "real" zone files (after ISPConfig has written them using the /root/ispconfig/isp/conf/pri.domain.master template).
  3. sonoracomm

    sonoracomm New Member

    Hi Falko,

    There are no problems with BIND. It all works perfectly.

    We have purposefully made the ISPconfig server (BIND) unavailable publicly; it's available only to the slaves. That is not the problem.

    Furthermore, I know I can edit the pri.domain.master file in the manner you describe. I have been doing it for quite a while now.

    The problem is that I have to edit the file _every_time_I_upgrade_ISPconfig_. Then I have to regenerate each zone file as well, which is a tedious process with a large number of domains (I usually just change the TTL and click save on each domain). After an ISPconfig upgrade (I have done several now), the pri.domain.master file is overwritten and _all_ of the zone files are regenerated incorrectly (depending on your perspective).

    Again, I realize this feature request may not affect the majority of users, but if it is easy to implement, I ask you to consider it. That's all.

    Thanks again,

  4. falko

    falko Super Moderator ISPConfig Developer

    Ah, ok, now I understand. I've added it to our bugtracker. :)
  5. falko

    falko Super Moderator ISPConfig Developer

    I've fixed this. You can now put your customized templates in the folder /root/ispconfig/isp/conf/customized_templates. These templates override the default templates in /root/ispconfig/isp/conf, and they are saved when you update ISPConfig. :)
  6. sonoracomm

    sonoracomm New Member

    Thanks Falko,

    Good idea. I'll test this over the weekend.

    I created the directory and copied in the modified template.

    I assume, I now just upgrade as normal...with 2.2.12? Or do I need to use a different (SVN?) version?

    I'll let you know how it goes.

  7. falko

    falko Super Moderator ISPConfig Developer

    This will be in the next release. If you want to test it now, you need the SVN version.
  8. dotcom

    dotcom New Member

    I'm running 2.2.14, I see the customized_templates directory, so I assume the feature is present...

    How do we edit this file?

    My plesk template looks like this:
    <domain>. NS
    <domain>. NS
    <domain>. A <ip>
    <domain>. MX (10) mail.<domain>.
    <domain>. MX (30)
    <domain>. MX (20)
    <domain>. TXT "v=spf1 a mx ip4: ~all"
    ftp.<domain>. A <ip>
    mail.<domain>. A
    mail2.<domain>. A
    webmail.<domain>. A

    How do I translate this into the correct ISPconfig template?

    Thanks for a great product!!!

    Last edited: Jun 27, 2007
  9. sonoracomm

    sonoracomm New Member

    Hi dotcom,

    I just updated to the latest (2.2.14) version. Before I did so, I created a /root/ispconfig/isp/conf/customized_templates directory and I copied my (functional, customized) pri.domain.master template file into it. Then I ran the upgrade.

    My zone files apparently did not get rebuilt as they still have dates as of the previous upgrade and they look fine. I then modified a domain and it was rebuilt properly using my customized template.

    So, my problem looks like it's fixed.

    Thanks again for this great product!


    p.s. Some time ago, I put up a quickie howto on my web site for my own benefit. Maybe someone else might find it useful.

Share This Page