[Pdns-users] SOA and ANY problem gmysql
ajlong at worldlink.net
Sun Jul 17 21:56:17 UTC 2005
I had this same problem with pdns-2.9.17
I wrote a small patch that adds this functionality.
All you have to do is set your serial numbers in the TEXT field in the
SOA record equal to 0 and pdns will them return the highest last_modified
value stored in a column called change_date from all the records associated
with that domain as the serial number.
I found this much more user friendly, updating a INT column rather than
modifying a TEXT or CHAR column with a serial number inside it. Also
You could use a TIMESTAMP column and anytime you make a change the serial
would be auto updated for that zone.
I'm pretty sure the same patch will work for 2.9.18 as the patch does still
Bert do you think this patch could be incorporated into a future release?
I'm not exactly a C++ expert but the actually code patch was really only
one or two added lines of code in gsqlbackend.c and it has been running
great for us for the past 6 months. And it still falls back to the normal
functionality if a serial exists in the SOA record or the change_date column
does not have a >0 last_modified value. I believe the original pdns code
went right to a Unix timestamp (which is probably the values line5 is
Hope this helps anyway line5.
From: pdns-users-bounces at mailman.powerdns.com
[mailto:pdns-users-bounces at mailman.powerdns.com] On Behalf Of mail at line5.tv
Sent: Sunday, July 17, 2005 10:31 AM
To: pdns-users at mailman.powerdns.com
Subject: [Pdns-users] SOA and ANY problem gmysql
neither in PowerDNS 2.9.17 nor in 2.9.18 I managed to set up the
serials. PDNS set them up, but I am not able to influence them in any
My Backend is (g)MySQL. I copied the SQL-tables from the PDNS-Homepage,
inserted my domains and set the last_changed date to 2005071701. A
dig-command on that server results in a:
It seems as if pdns does not read whatever I write into that
last_changed field. Does anyone know what I am doing wrong?
Pdns-users mailing list
Pdns-users at mailman.powerdns.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8800 bytes
Desc: not available
More information about the Pdns-users