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

Try to fix zone delegation, by allowing to specifiy record type == NS in rrsets array #162

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

torstehu
Copy link

Hi, I'm quite a new contributer to ansible collections,

Thank you for creating this collection, very useful!

this seems to work to do subzone deligation for regular dns zones and reverse DNS deligation in my enviroment

I could probably open an issue first, but could you look if this is a workable solution

Regards from Torstein

by allowing to specifiy record type == NS in rrsets array
@kpfleming
Copy link
Owner

Thanks for the PR!

To be honest, I do not remember why I included the restriction on NS RRs in the initial RRset; I suspect it's because I assumed that RRset would only contain apex records, and nothing else. Since this module does not include the ability to manage RRs after the initial zone creation, it hadn't crossed my mind to allow NS RRs.

This approach is probably fine, but you'll need to correct the spelling of 'delegation' :-) I'll mark the workflows as approved so you can get CI feedback, and then I'll review the PR later this week.

@kpfleming kpfleming changed the title Try to fix zone deligation, by allowing to specifiy record type == NS in rrsets array Try to fix zone delegation, by allowing to specifiy record type == NS in rrsets array Nov 20, 2024
Copy link
Owner

@kpfleming kpfleming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look fine, just some spelling fixes :-)

@@ -34,6 +34,8 @@ for emergencies).

- Removed support for Python 3.8.

- Fix ability to make zone deligation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fix ability to make zone deligation
- Fix ability to make zone delegations

@@ -46,7 +46,7 @@
vars:
d1_rrset: "{{ lookup('dig_local', 't1.d1.rrset.example.', qtype='A', flat=0, fail_on_error=false, real_empty=false) }}"

- name: check for failure when rrset includes NS
- name: check zone creation with zone deligation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: check zone creation with zone deligation
- name: check zone creation with zone delegation

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

Successfully merging this pull request may close these issues.

2 participants