diff --git a/bureau/class/m_bind.php b/bureau/class/m_bind.php index 12369ef9..b8b88d9a 100644 --- a/bureau/class/m_bind.php +++ b/bureau/class/m_bind.php @@ -72,6 +72,10 @@ class m_bind { // Prepare a new zonefile from a template $zone = file_get_contents($this->ZONE_TEMPLATE); + + // add the SUBDOMAIN entries + $zone .= $this->conf_from_db($domain); + // substitute ALTERNC & domain variables $zone = strtr($zone, array( "%%fqdn%%" => "$L_FQDN", @@ -91,9 +95,6 @@ class m_bind { "@@ZONETTL@@" => $ttl, )); - // add the SUBDOMAIN entries - $zone .= $this->conf_from_db($domain); - // add the "END ALTERNC CONF line"; $zone .= ";;; END ALTERNC AUTOGENERATE CONFIGURATION\n";