slave dns picking up on the master dns

Discussion in 'General' started by HooGLaNDeR, May 31, 2009.

  1. HooGLaNDeR

    HooGLaNDeR New Member

    Hi all,

    I've set up a master dns, eg
    and a slave dns, eg

    when installing the slave dns, i've also pointed out the master dns through the expert setup.

    Yet, how does the slave dns replicate from the master dns?

    For some reason it just doesn't pick up on any zone alterations/ new zones :confused:.

    Can anyone help me in the right direction?

    Thanks in advance.
  2. falko

    falko Super Moderator

    Till is currently working on a first steps guide for ISPConfig 3, so that might clear up a few things. :)
  3. HooGLaNDeR

    HooGLaNDeR New Member

    I hope so. The product is very nice. If i can get it to replicate with the slaves it would be perfect.

  4. till

    till Super Moderator

    The current version does not repliacte the settings, it just manages different dns servers. It is planned to have a mirrot option in the next relaese. Until then you can either point the mydns of the slave server directly to the master database or you use mysql replication without having ispconfig installed on the slave or you do a little modification in the ispconfig code that I described here for a mail setup:

    Basically you edit the file /usr/local/ispconfig/lib/classes/ on the slave server and change the line:

    $sql = "SELECT * FROM sys_datalog WHERE datalog_id > ".$conf['last_datalog_id']." AND (server_id = ".$conf["server_id"]." OR server_id = 0) ORDER BY datalog_id";

    $sql = "SELECT * FROM sys_datalog WHERE datalog_id > ".$conf['last_datalog_id']." AND (server_id = 1 OR server_id = 0) ORDER BY datalog_id";
    So the slave will now replicate every new or updated dns entry from the server with ID 1 (the master server) which is all you need for the replicated dns setup.
  5. HooGLaNDeR

    HooGLaNDeR New Member

    Okay, i found it, and i changed it.
    Unfortunately it still doesnt pick up any addings to my dns1.

    How can i troubleshoot to see wheres its going wrong?
  6. HooGLaNDeR

    HooGLaNDeR New Member

    Anybody, any idea to fix this?
    I'm clueless :(
  7. till

    till Super Moderator

    enable debugging in to check what the system is doing.
  8. HooGLaNDeR

    HooGLaNDeR New Member

    Ok, good one. Lemme examine whats going on :)
  9. HooGLaNDeR

    HooGLaNDeR New Member

    So, there is a form of communication, yet on the the slave i see nothing happening.

    Just to be sure.

    i create the domain on the master, i create the domain on the slave?
    Or should it also appear on the slave automagicly?

    link to a screenshot

    Or am i doing something totally wrong?
    Last edited: Jun 16, 2009
  10. till

    till Super Moderator

    If you changed the SQl as I explained in #4, then you dont have to create the domain on the second server.

    If you did not changed sql, you will have to create the domain on the second server.
  11. HooGLaNDeR

    HooGLaNDeR New Member

    this is on the slave side :

    I've changed it, as you wrote down.
    It's just that i don't see anything working :(
    Where could i see any alternative debug logs?
    Last edited: Jun 16, 2009
  12. Naudski

    Naudski New Member

    I've exactly the same problem. Slave not picking up anything.
    Any comments??

  13. till

    till Super Moderator

    Do you use the normal setup or the hack described in this thread?
  14. till

    till Super Moderator

    There is just one log and you see it already. Check if the changes have been executed on the main server.
  15. HooGLaNDeR

    HooGLaNDeR New Member

    On the Master it gets changed. Only the slave doesn't do anything.

    Any other way to check ?
  16. HooGLaNDeR

    HooGLaNDeR New Member

    Whatever i do, i dont get the slave updated. Anyone who has sorted this issue?

    I've done a fresh install and followed the howto of this site.
  17. HooGLaNDeR

    HooGLaNDeR New Member

    Has anyone ever found a way to resolve this ?
  18. Uvigii

    Uvigii New Member

    Last edited: Jan 8, 2010

Share This Page