Difference between revisions of "PowerDNS OpenDBX Backend/Configuration/Auto serials"

From Linuxnetworks
Jump to: navigation, search
(auto serial)
 
(removed backlink)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Since version 2.9.22, the PowerDNS OpenDBX backend supports the automatic calculation of SOA serials. The serial field in the SOA record can be represented by a number which is incremented each time a new record is inserted, an existing record is updated or an old record is deleted inside the zone. This behavior is supported by all OpenDBX database backends which provide triggers (currently, all databases supported by the PowerDNS OpenDBX backend do this).
+
Since version 2.9.22, the PowerDNS OpenDBX backend supports the automatic calculation of SOA serials. The serial field in the SOA record can be represented by a number which is incremented each time a new record is inserted, an existing record is updated or an old record is deleted inside the zone. This behavior is supported by all OpenDBX database backends which provide triggers (currently, all [[PowerDNS_OpenDBX_Backend/Configuration/Database_specific|databases supported]] by the PowerDNS OpenDBX backend do this).
  
 
To enable this feature you have to set the serial number in the SOA record of the zone to zero ("0"), e.g.
 
To enable this feature you have to set the serial number in the SOA record of the zone to zero ("0"), e.g.
Line 5: Line 5:
 
  ns.example.com. hostmaster.example.com. 0 86400 900 604800 3600
 
  ns.example.com. hostmaster.example.com. 0 86400 900 604800 3600
  
The serial number is the third field respectively the first numeric value in the SOA record. This causes the PowerDNS OpenDBX backend to use the column "auto_serial" in the "domains" table of the associated zone instead of the value in the SOA record. Therefore, using the automatic serial calculation can be enabled on a per zone basis.
+
The serial number is the third field respectively the first numeric value in the SOA record. This causes the PowerDNS OpenDBX backend to use the column "auto_serial" in the "domains" table of the associated zone instead of the value in the SOA record. Please be sure that you've updated the [[PowerDNS_OpenDBX_Backend/Configuration/Database_specific|database schema]] to the latest version.
  
For already existing zone with given serials you can add the current value of the SOA serial to the value of the "auto_serial" column to provide consecutive serial numbers. Alternatively, PowerDNS also provides the possibility to add a certain value to all SOA serials on the fly via the "soa-serial-offset" parameter.
+
Using the automatic serial calculation can be enabled on a per zone basis. For already existing zone with given serials you can add the current value of the SOA serial to the value of the "auto_serial" column to provide consecutive serial numbers. Alternatively, PowerDNS also provides the possibility to add a certain value to all SOA serials on the fly via the "soa-serial-offset" parameter.
 
+
 
+
----
+
Back to [[PowerDNS_OpenDBX_Backend|Overview]]
+

Latest revision as of 13:38, 22 June 2008

Since version 2.9.22, the PowerDNS OpenDBX backend supports the automatic calculation of SOA serials. The serial field in the SOA record can be represented by a number which is incremented each time a new record is inserted, an existing record is updated or an old record is deleted inside the zone. This behavior is supported by all OpenDBX database backends which provide triggers (currently, all databases supported by the PowerDNS OpenDBX backend do this).

To enable this feature you have to set the serial number in the SOA record of the zone to zero ("0"), e.g.

ns.example.com. hostmaster.example.com. 0 86400 900 604800 3600

The serial number is the third field respectively the first numeric value in the SOA record. This causes the PowerDNS OpenDBX backend to use the column "auto_serial" in the "domains" table of the associated zone instead of the value in the SOA record. Please be sure that you've updated the database schema to the latest version.

Using the automatic serial calculation can be enabled on a per zone basis. For already existing zone with given serials you can add the current value of the SOA serial to the value of the "auto_serial" column to provide consecutive serial numbers. Alternatively, PowerDNS also provides the possibility to add a certain value to all SOA serials on the fly via the "soa-serial-offset" parameter.