DNS - Manual Entry's doubled

Discussion in 'Installation/Configuration' started by rvarkevisser, Mar 30, 2007.

  1. rvarkevisser

    rvarkevisser New Member

    Here's my problem. Instead of using www as the MX host, I want to use "mail" as the host and a different IP. So I edited pri.domain.master and added the following:

    <!-- BEGIN DYNAMIC BLOCK: mxrecords -->
    mail.{DNS_SOA} MX {MX_PRIORITAET} {MX_MAILSERVER}.

    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
    mail A (mailserver IP)


    ----------------

    Now I have the following problem, when editing this file. When a change is made in the DNS record, the Manual Entries are applied everytime i make a change. So the record is doubled every time.

    pri.test.nl
    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
    mail A 111.111.111.111



    ;
    mail A 111.111.111.111



    ;
    mail A 111.111.111.111

    -----------
    etc.

    This also happens, when I add a new line above the Manual Entrys, but not with the record below, which I only edited a bit by adding mail. in front of the line: mail.{DNS_SOA} MX {MX_PRIORITAET} {MX_MAILSERVER}.

    Who can help me out?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This file is not made to add manual entrys in the dynamic blocks as the danmic blocks are used as subtemplate for every MX record.

    Please undo the editing that you have done in the template and add the MX record in the ISPConfig DNS-Manager instead.
     
  3. rvarkevisser

    rvarkevisser New Member

    DNS config

    Oke, that's a little bit strange, but hé... I will change the 372 DNS entry's I have.... That's why I chose for ISPConfig, so I could make my own config files, suited for our needs. Never the less, I'm still very pleased with it.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Not really, it is a recurring template part, thats why it is doubled. If you want to change the behaviour in ISPConfig, have a look at the file /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php
     

Share This Page