powerdns ?bug?

Discussion in 'Developers' Forum' started by zsirmo, Oct 14, 2025.

  1. zsirmo

    zsirmo New Member

    Hello,

    I may have found a bug in ISPConfig (it worked correctly in 3.2.11p1, but it certainly doesn't in the latest version)!

    If I've understood the code correctly, when I create a domain from a template, the following functions run and generate the DNS records:
    1. SOA insert

    2. RR insert (as many as needed)

    3. SOA update
    The first problem I found during debugging is that, during the SOA insert, the value of the 'active' key in the $data["new"] array is 'N', which means the domain ID is not created. This results in the RRs (Resource Records) being created in the database, but they are incomplete.

    14.10.2025-13:12 - DEBUG [plugins.inc:118] - Calling function 'soa_insert' from plugin 'powerdns_plugin' raised by event 'dns_soa_insert'.
    14.10.2025-13:12 - DEBUG [powerdns plugin.inc:131] - (PDNS soa_insert) ACTIVE: N data_new: Array
    (
    [id] => 120
    [sys_userid] => 1
    [sys_groupid] => 52
    [sys_perm_user] => riud
    [sys_perm_group] => riud
    [sys_perm_other] =>
    [server_id] => 1
    [origin] => reformpilates.studio.
    [ns] => dns.e-dns.hu.
    [mbox] => info.mediaexchange.hu.
    [serial] => 2025101401
    [refresh] => 7200
    [retry] => 540
    [expire] => 604800
    [minimum] => 3600
    [ttl] => 3600
    [active] => N
    [xfer] => 84.21.15.3
    [also_notify] => 84.21.15.3
    [update_acl] =>
    [dnssec_initialized] => N
    [dnssec_wanted] => N
    [dnssec_algo] =>
    [dnssec_last_signed] => 0
    [dnssec_info] =>
    [rendered_zone] =>
    )


    RR insert debug:

    14.10.2025-13:12 - DEBUG [plugins.inc:118] - Calling function 'rr_insert' from plugin 'powerdns_plugin' raised by event 'dns_rr_insert'.
    14.10.2025-13:12 - DEBUG [powerdns plugin.inc:278] - (PDNS rr_insert) ACTIVE: Y data_new: Array
    (
    [id] => 1415
    [sys_userid] => 1
    [sys_groupid] => 52
    [sys_perm_user] => riud
    [sys_perm_group] => riud
    [sys_perm_other] =>
    [server_id] => 1
    [zone] => 120
    [name] => reformpilates.studio.
    [type] => A
    [data] => 217.113.53.121
    [aux] => 0
    [ttl] => 3600
    [active] => Y
    [stamp] => 2025-10-14 13:11:58
    [serial] =>
    )

    14.10.2025-13:12 - DEBUG [powerdns plugin.inc:288] - DEBUG(DNS rr_insert) zone_id: powerdns_zone:
    14.10.2025-13:12 - DEBUG [powerdns plugin.inc:338] - DEBUG(DNS rr_insert) , reformpilates.studio, A, 217.113.53.121, 3600, 0, 1760440322, 1415

    Since the SOA is not created in either the domain or the records table, the zone_id becomes NULL. Consequently, PowerDNS cannot assign the RRs (Resource Records) to the domain.
     

    Attached Files:

    Last edited: Oct 14, 2025
  2. zsirmo

    zsirmo New Member

    when ispconfig/interface/lib/classes/dns_wizard.inc.php change 271 line to
    "active" => 'Y', // Activated later when all DNS records are added.

    Powerdns zone is good!!!
     
    till likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Thanks, I'll add an issue in our issue tracker at git.ispconfig.org.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page