Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment serial number of SOA entry #7

Closed
zilon84 opened this issue Jan 29, 2017 · 2 comments
Closed

Increment serial number of SOA entry #7

zilon84 opened this issue Jan 29, 2017 · 2 comments

Comments

@zilon84
Copy link

zilon84 commented Jan 29, 2017

As far as I observed the behavior of this nice hook, the serial nuber (or ID) of the domain is not modified or incremented and thus slaves don't know that any changes were made or the challenges added.

@zilon84
Copy link
Author

zilon84 commented Jan 29, 2017

Referring to http://jpmens.net/2015/01/09/a-look-at-the-powerdns-rest-api/

The domainmetadata table has to be altered and for each domain an antry of the shape

+----+-------------+-----------------+-----------------------------+
| id | domain_id | kind | content |
+----+-------------+-----------------+-----------------------------+
| 1 | 6 | SOA-EDIT-API | INCEPTION-INCREMENT |
+----+-------------+-----------------+-----------------------------+

has to be made. This automatically increase the ID of the SOA entry.

@silkeh
Copy link
Owner

silkeh commented Jan 30, 2017

The script does not do this because it should be done through SOA-EDIT-API.
It is not necessary to set this in the database, it is possible to use the API or command line to set it:

pdnsutil set-meta [zone] SOA-EDIT-API INCEPTION-INCREMENT

What the script could do is output a warning if it is not set (or set it to a default value like INCEPTION INCREMENT).

@silkeh silkeh closed this as completed in bfe85b0 May 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants