-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot update "NS" types entries from Bind9 managed DNS zone #4657
Comments
Files identified in the description: If these files are incorrect, please update the |
I have successfully modified the nsupdate.py script with the following changes for my environment: Feel free to grab the changes or I can create a pull request if that is your preferred approach. |
I'm not sure whether someone is actively maintaining this module, so creating a PR probably increases chances a lot that this fix will end up in this collection :) |
I will submit a PR after I complete my infrastructure changes. It will give me a chance to properly test my changes against bind9.18. |
* Insert new entries before deleting old ones. resolves #4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
* Insert new entries before deleting old ones. resolves #4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 5cb9a9e)
* Insert new entries before deleting old ones. resolves #4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 5cb9a9e) Co-authored-by: Simon-TheUser <[email protected]>
* Insert new entries before deleting old ones. resolves ansible-collections#4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
* Insert new entries before deleting old ones. resolves ansible-collections#4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
* Insert new entries before deleting old ones. resolves ansible-collections#4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
* Insert new entries before deleting old ones. resolves ansible-collections#4657 * Slight wording changes. * lint fix * Address lint * Added changelog Fixed lint * More linting * Update changelogs/fragments/5377-nsupdate-ns-records-with-bind.yml Co-authored-by: Felix Fontein <[email protected]> Co-authored-by: Felix Fontein <[email protected]>
Summary
When running a nsupdate task where the type: "NS" is used, Ansible reports a successful change.
Unfortunately, Bind9 will silently ignore the deletes statement for NS type for a zone and the Ansible change does not work.
Issue Type
Bug Report
Component Name
nsupdate
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
The changes are made against a Bind9.18 DNS Server
Steps to Reproduce
Before running the test, gather the list of NS entries for a DNS zone.
Create a task that does not include the ns3.lab. entry and execute it:
Expected Results
After executing the task, I would expect the new list of NS records to only contain 3 items:
Actual Results
Running the domain query shows that ns3.lab. is still present as a NS entry:
Inside the Bind9 logs, you can see that the delete request for NS records is ignored:
Bind9 source code reference: https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_18/lib/ns/update.c#L3304
Code of Conduct
The text was updated successfully, but these errors were encountered: