Secondary DNS not syncing

Discussion in 'ISPConfig 3 Priority Support' started by francoisPE, Nov 27, 2022.

  1. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Hello,
    I have a ispc 3.4.9 multiple server conf with ubuntu 20.04
    It worked very well.
    yesterday, I changed location of one website and so modify related DNS...
    More precisely, I remove DNS zone and create a new one.
    Unfortunatelly, my secondary dns is not updating.
    So that dig on ns1 gives the right IP, when dig on ns2 gives the old one.
    I try modify zone, modify secondary zone to force update.

    I disconnect cron for server.sh and run it manually, it gives (nothing!)
    Code:
    @ns1:~# /usr/local/ispconfig/server/server.sh
    27.11.2022-09:56 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    27.11.2022-09:56 - DEBUG [server:177] - Found 2 changes, starting update process.
    27.11.2022-09:56 - DEBUG [plugins.inc:118] - Calling function 'soa_update' from plugin 'bind_plugin' raised by event 'dns_soa_update'.
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: named-checkzone 'my.dom.tld.' '/etc/bind/pri.my.dom.tld' - return code: 0
    27.11.2022-09:56 - DEBUG [bind plugin.inc:346] - Writing BIND domain file: /etc/bind/pri.my.dom.tld
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: cd '/etc/bind'; named-checkzone 'my.dom.tld' '/etc/bind/pri.my.dom.tld' | egrep -ho '[0-9]{10}' - return code: 0
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: cd '/etc/bind'; dnssec-signzone -A -e +1382400 -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N increment -o 'my.dom.tld' -t 'pri.my.dom.tld' - return code: 0
    27.11.2022-09:56 - DEBUG [bind plugin.inc:592] - Writing BIND named.conf.local file: /etc/bind/named.conf.local
    27.11.2022-09:56 - DEBUG [modules.inc:240] - Processed datalog_id 4001
    27.11.2022-09:56 - DEBUG [plugins.inc:118] - Calling function 'rr_insert' from plugin 'bind_plugin' raised by event 'dns_rr_insert'.
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: named-checkzone 'my.dom.tld.' '/etc/bind/pri.my.dom.tld' - return code: 0
    27.11.2022-09:56 - DEBUG [bind plugin.inc:346] - Writing BIND domain file: /etc/bind/pri.my.dom.tld
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: cd '/etc/bind'; named-checkzone 'my.dom.tld' '/etc/bind/pri.my.dom.tld' | egrep -ho '[0-9]{10}' - return code: 0
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: cd '/etc/bind'; dnssec-signzone -A -e +1382400 -3 $(head -c 1000 /dev/random | sha1sum | cut -b 1-16) -N increment -o 'my.dom.tld' -t 'pri.my.dom.tld' - return code: 0
    27.11.2022-09:56 - DEBUG [bind plugin.inc:592] - Writing BIND named.conf.local file: /etc/bind/named.conf.local
    27.11.2022-09:56 - DEBUG [modules.inc:240] - Processed datalog_id 4002
    27.11.2022-09:56 - DEBUG [services.inc:56] - Calling function 'restartBind' from module 'dns_module'.
    27.11.2022-09:56 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    27.11.2022-09:56 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'named' 2>&1 - return code: 0
    27.11.2022-09:56 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished server.php.
    
    and
    Code:
    @ns2:~# /usr/local/ispconfig/server/server.sh
    27.11.2022-09:53 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    27.11.2022-09:53 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    finished server.php.
    
    I try google to find how to force update but I found nothing !

    Thank you for your help
     
    Last edited: Nov 27, 2022
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I suppose you mean ISPConfig 3.2.9 ;)

    Can you share the config for both the zone and secondary zone?
     
  3. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Sorry, misunderstanding from my side.
    What do you mean by dns config
     

    Attached Files:

    Last edited: Nov 27, 2022
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I am asking you to share the config of the zone and the secondary zone, not the status of the servers.
     
  5. francoisPE

    francoisPE Active Member HowtoForge Supporter

  6. francoisPE

    francoisPE Active Member HowtoForge Supporter

  7. francoisPE

    francoisPE Active Member HowtoForge Supporter

    My mistake for the wrong reply
    Very sorry :(
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No problem.

    On the secondary zone, you can set the "Allow zone transfers to" to the ns1 IP. Other than that, all looks good. Can the 2 servers reach each other? Check the named logs for both servers.
     
  9. francoisPE

    francoisPE Active Member HowtoForge Supporter

    Finally, it turns right... ns2 updates its zone
    Both servers are saying same IP.
    thank you very much :):):)
     
    Th0m likes this.

Share This Page