dns not writing to config files

Discussion in 'General' started by Andrew Colin, Sep 11, 2016.

  1. Andrew Colin

    Andrew Colin New Member

    Hi Guys

    for some strange reason our dns servers are not updating the changes to /etc/bind/pri.zone
    but they are adding to the database
    the strange thing is if i add a new zone it creates the file but wont add any changes to the file
    i cant see any errors in the log etc
    please can you guys help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Andrew Colin

    Andrew Colin New Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    1) you have to comment out the server.sh cronjob.
    2) then you have to do the action that you want to debug, in your case, adding a new dns record.
    3) then run /usr/local/ispconfig/server/server.sh
     
  5. Andrew Colin

    Andrew Colin New Member


    Hi

    1) yes i have
    2) see below

    root@ns1:~# /usr/local/ispconfig/server/server.sh
    12.09.2016-11:01 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    12.09.2016-11:01 - DEBUG - Found 3 changes, starting update process.
    12.09.2016-11:01 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('1005','1','0','riud','riud','','9','71','mail01','A','154.118.252.9','0','60','Y','2016-09-12 11:01:44','2016091201')
    12.09.2016-11:01 - DEBUG - Processed datalog_id 4247
    12.09.2016-11:01 - DEBUG - Replicated from master: REPLACE INTO dns_soa (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`origin`,`ns`,`mbox`,`serial`,`refresh`,`retry`,`expire`,`minimum`,`ttl`,`active`,`xfer`,`also_notify`,`update_acl`) VALUES ('71','6','0','riud','ru','','9','purebandwidth.co.za.','ns1.cvtel.co.za.','info.convergedgroup.net.','2016091203','7200','540','604800','86400','3600','Y','','','')
    12.09.2016-11:01 - DEBUG - Processed datalog_id 4248
    12.09.2016-11:01 - DEBUG - Replicated from master: REPLACE INTO dns_rr (`id`,`sys_userid`,`sys_groupid`,`sys_perm_user`,`sys_perm_group`,`sys_perm_other`,`server_id`,`zone`,`name`,`type`,`data`,`aux`,`ttl`,`active`,`stamp`,`serial`) VALUES ('1005','1','0','riud','riud','','9','71','mail01','A','154.118.252.9','0','60','Y','2016-09-12 11:01:44','2016091201')
    12.09.2016-11:01 - DEBUG - Processed datalog_id 4249
    12.09.2016-11:01 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished.


    also see screenshot of record not writing to file

    http://pasteboard.co/28wxjbshQ.png
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if the dns plugin or the dns module is not active on this server. Check if there is a symlink to the dns module in /usr/local/ispconfig/server/mods-enabled/ and a symlink to the plugin in /usr/local/ispconfig/server/plugins-enabled/
     
  7. Andrew Colin

    Andrew Colin New Member

    Hi Till

    doesnt look like it

    see below

    root@ns1:~# ls -al /usr/local/ispconfig/server/mods-enabled/
    total 92
    drwxr-s--- 2 root staff 4096 Sep 7 09:37 .
    drwxr-s--- 13 root staff 4096 Sep 11 18:17 ..
    -rwxr-x--- 1 root staff 3159 Sep 7 09:37 client_module.inc.php
    -rwxr-x--- 1 root staff 3178 Sep 7 09:37 cron_module.inc.php
    -rwxr-x--- 1 root staff 3804 Sep 7 09:37 database_module.inc.php
    -rwxr-x--- 1 root staff 6376 Sep 7 09:37 dns_module.inc.php
    -rwxr-x--- 1 root staff 45 Sep 7 09:37 empty.dir
    -rwxr-x--- 1 root staff 25009 Sep 7 09:37 monitor_core_module.inc.php
    -rwxr-x--- 1 root staff 12588 Sep 7 09:37 rescue_core_module.inc.php
    -rwxr-x--- 1 root staff 4757 Sep 7 09:37 server_module.inc.php
    -rwxr-x--- 1 root staff 4121 Sep 7 09:37 vm_module.inc.php
    root@ns1:~# ls -al /usr/local/ispconfig/server/plugins-
    ls: cannot access /usr/local/ispconfig/server/plugins-: No such file or directory
    root@ns1:~# ls -al /usr/local/ispconfig/server/plugins-enabled/
    total 92
    drwxr-s--- 2 root staff 4096 Sep 7 09:37 .
    drwxr-s--- 13 root staff 4096 Sep 11 18:17 ..
    -rwxr-x--- 1 root staff 7621 Sep 7 09:37 backup_plugin.inc.php
    -rwxr-x--- 1 root staff 45 Sep 7 09:37 empty.dir
    -rwxr-x--- 1 root staff 9895 Sep 7 09:37 firewall_plugin.inc.php
    -rwxr-x--- 1 root staff 31529 Sep 7 09:37 mysql_clientdb_plugin.inc.php
    -rwxr-x--- 1 root staff 13487 Sep 7 09:37 network_settings_plugin.inc.php
    -rwxr-x--- 1 root staff 11310 Sep 7 09:37 software_update_plugin.inc.php
     
  8. Andrew Colin

    Andrew Colin New Member

    fixed the issue with the symlic
    thanks for the guidance
     

Share This Page