-
Short descriptionThe PowerDNS nameserver pdnsutil utility has an add-record, but no remove-record. How can we remove records programmatically for many domains at once? There should pdnsutil remove-record or pdnsutil delete-record command UsecaseI need to delete a large number of old name server (NS) records from over a hundred zones. Deleting them one by one would be very tedious. DescriptionI should be able to run a command such as: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Is |
Beta Was this translation helpful? Give feedback.
-
This does seem to work. Thank you!
It would still be more intuitive if a create-record, update-record, and delete-record subcommand existed in my opinion, but thank you again so much. You just saved me hours of effort :) |
Beta Was this translation helpful? Give feedback.
-
For anyone else trying to do this, this is how you do it for SOA records. Note the single quotes which are important:
|
Beta Was this translation helpful? Give feedback.
-
@Habbie I may have another problem with the lack of a delete subcommand. We're migrating from a DNS server that doesn't support ALIAS/CNAME records for the apex/root domain. Now that we're on power DNS we want to switch from A records over to ALIAS/CNAME records so that we only have an IP address in one location. And we need to do this for hundreds of zones. I can bulk-add ALIAS records like this:
But how do I remove all the old A records like this:
Can |
Beta Was this translation helpful? Give feedback.
-
I'm moving this to discussions, then I'll respond. |
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
you can use
delete-rrset