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

Support multiple $ORIGINs in one zone file #47

Open
jamieparfet opened this issue Sep 7, 2023 · 2 comments
Open

Support multiple $ORIGINs in one zone file #47

jamieparfet opened this issue Sep 7, 2023 · 2 comments

Comments

@jamieparfet
Copy link

I have a large zone file containing multiple $ORIGIN entries. Sometimes it declares a new $ORIGIN before switching back to the original, like so:

$ORIGIN example.com
sub1 ...
sub2 ...
$ORIGIN test-env.example.com
testsub1 ...
testsub2 ...
$ORIGIN example.com
sub3 ...
sub4 ...

Would it be possible to implement the parsing of multiple $ORIGINs in one zone file? As far as I can tell, this is RFC compliant (admittedly not best-practice).

Thanks!

@elgs
Copy link
Owner

elgs commented Sep 11, 2023

I am so sorry I overlooked your issue.

I understand your situation. Conceptually the change should be straightforward, but this would change the structure of the json. From 1 to 5, how badly do you need this feature? If 5, I will implement it.

@elgs
Copy link
Owner

elgs commented Sep 11, 2023

Actually I think you are right. Every record in the json should have a field called origin. The change should be easy, but I will need to think about potential backward compatibility issues.

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