myDNS & Bind slaves - ISPConfig3

Discussion in 'Installation/Configuration' started by Murder4Al, Feb 18, 2009.

  1. Murder4Al

    Murder4Al New Member


    I'm doing some testing with the great ISPConfig3 and I ran into some questions with myDNS. As it's very light in docs I resort to here.

    I have several off-site dns backups who run bind (not discussable) and I want them to AXFR their stuff of the main myDNS server.
    I have added 'allow-axfr = yes' to the mydns.conf, and I have verified this actually working after adding my slave dns-ip's to the xfer field.

    What I'm not getting is the notify part.
    If I got it correctly myDNS does not sent notifies to the slaves whenever updates are performed (it's not aware of such a change since only the underlying table is updated and the deamon is not notified), thus creating an potential problem.
    But the documentation states that that is the setting 'notify-enabled' is true then notifies will be generated on startup, this is something that I can't confirm to be working.
    I find that updating the slaves in a timely matter is important for good service.

    Any ideas ?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I see two options:

    1) Rund mydns on the slaves too and use the mysql replication faetures in ispconfig to replicate the dns records to the other instances.

    2) Restart the mydns on the master by cron from time to time, e.g. once an hour.
  3. Murder4Al

    Murder4Al New Member


    Running myDNS on the slaves is not an option (those servers are not mine and re slaving several thousands of other domains from other sources).

    Upon restarting myDNS NOTIFIES are not sent out currently (for a reason unknown to me). Is this a possible bug in myDNS or am I missing something?
    In case of a bug I'll have a look in the source ;-)
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I'am not suere if its a bug as I'am not a mydns developer. Maybe its just a missing feature? mydns isteslf is not under development anymore as far as I know but the successor project is mydns-ng which can be found at sourceforge and which is used for ispconfig as well. Maybe you might ask the developers in their mailing list if they know a solution for this.
  5. Murder4Al

    Murder4Al New Member

    A look in the source learned that 'allow-update' also needs to be enabled for the notify-on-start feature to kick-in.

    Since bind is trying to be smart it uses IXFR's as a response it seems, so I just need to figure out how to enable that.

    BTW, I'm using the -ng version evidently.
  6. theamoeba

    theamoeba ISPConfig Developer ISPConfig Developer

    What I am struggling to understand is, why did u decide to change over to mydns when bind seemed to be working just fine. i will grant u that mydns is easier to understand.

    i am running fedora 9 (i know this experimental, and no i am not changing to ubuntu/debian). mydns starts beautifully using a service mydns start, but it refuses to start on boot - it gives an error 111 mysql connection error.

    can someone please help with this as all of the mysql details are correct and it loads nicely once the box has booted and i do a service start manually.

    it just occurred to me that since it is moaning about a mysql.sock error, is it not possible that mydns is starting before mysqld and therefore cannot connect?

  7. theamoeba

    theamoeba ISPConfig Developer ISPConfig Developer

    i figured out my own questions.

    mydns is very much easier to use than bind as it runs on sql - mysql or postgresql. so updating the records is really simple.

    managed to fix the mysql issue, i was right - mydns was starting before mysqld - therefore it would never be able to connect would it? here is a forum post on changing the service boot order in fedora (i suppose this will work in any red hat variation):

    Last edited: Feb 23, 2009
  8. kr0hmy

    kr0hmy New Member

    trying to make IXFR work

    Hello! I'm new to ispconfig and i love it :)

    I've set-up a server at with ispconfig 3 and ubuntu 8.04. This hosting provider give me the possibility to use a secondary DNS service (i don't have any access to config or anything).

    Everything is working fine when the slave (they use BIND) sync with my main DNS for the first time (AXFR type). But when i update the zone records, the slave can't get the updated records.

    Like Murder4Al, i found out that BIND use IXFR to get the updated records. Since i can't modify the slave config, i modified the Mydns-ng config to activate IXFR. But to be fully fonctionnal myDNS require a database structure change :
    These 2 fields are needed in the dns_rr table for myDNS to be capable of IXFR zone transfers (obtained with command : mydns --create-tables):
      stamp      timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    I'm not sure about what ispconfig file(s) i need to modify to insert the updated serial in the dns_rr table? Since i'm not so confident about my php skills... i hope someone could help me on this :)
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    You will have to modify the sql dump, the form definitions in the dns module of the interface and then add some code to the form handler scripts of the dns module of the interface to fill in the correct values.
  10. andypl

    andypl Member

  11. till

    till Super Moderator Staff Member ISPConfig Developer

    bind-mysql is just a patch for bind which seems to be not under active development anymore (last release from 2007) and no linux distribution offers bnd-mysql packages in their repositories.
  12. kr0hmy

    kr0hmy New Member

    Thank you!

    I don't know why i looked a the svn log earlier this morning, but i'm must say i'm very happy thanks to those lines :D :
    r1155 | falko | 2009-04-02 16:04:39 +0200 (Jeu, 02 avr 2009) | 1 line
    - Added "serial" and "stamp" columns to the dns_rr table.
    I know updating with the svn option might be dangerous on the long run, but i needed this feature badly!

    So big thanks falko! And also till for your disponibility and reactivity :)

    By the way MyDNS IXFR zone transfer know work flawlessly :cool:

    Thank you so much!!

Share This Page