Skip to content

No SOA found for domain #125

Answered by trizz
swartjie asked this question in Q&A
Dec 20, 2022 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks for your example. It seems there's a bug in the find method: strictly speaking, you always need canonical zone names (ending with a dot; test2.co.za.). To keep things simple, the package will handle this for you. In this case, a sub record will be 'transformed' to www.test2.co.za. while test2.co.za should be transformed to test2.co.za., however, this doesn't happen.

Having said that, you're using a find without setting a record type, so it returns all records matching the name. In this case, also the SOA and NS records are being returned by PowerDNS (and in a real-world scenario probably also the MX records). Calling the delete method, will also delete those records which could exp…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@swartjie
Comment options

Answer selected by swartjie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #124 on December 20, 2022 12:32.