-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
ZoneFileProvider, read and write support added #42
Conversation
Ran it through the paces, took a couple of my zone files and put them through it, loaded them into bind no problem. Serial incremented/changed as expected Only thing that I hit, which I believe might be because it's written every time is that the Apex NS records cause it to throw the |
Yeah. It's a bit annoying. Maybe we could look at ignoring the RootNSChange exception when creating a zone from scratch. Outside the scope of this PR, but will stick a TODO on the list for octoDNS core about it. |
Doh. Looks like that's already the case https://github.com/octodns/octodns/blob/ccb4f97a2f857060e654587b35c7d496c4a40cf6/octodns/provider/plan.py#L117-L124. The problem is with this provider in that it doesn't correctly indicate whether the zone exists or not during populate. Will look into that. |
This has been addressed. |
Looks to me! Great new functionality I'll definitely be using for home |
Thank you very much, @ross!!! |
Support for writing zone files out to disk, full read/write provider. Similar to YamlProvider all records are written out each time, i.e. when in
target
mode the provider assumes the are no existing records./cc Fixes #40 @kabenin
/cc @yzguy for 👀