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

ZoneFileSource.list_zones #41

Merged
merged 1 commit into from
Sep 8, 2023
Merged

ZoneFileSource.list_zones #41

merged 1 commit into from
Sep 8, 2023

Conversation

ross
Copy link
Contributor

@ross ross commented Sep 7, 2023

Implements list_zones for ZoneFileSource.

Unfortunately there doesn't seem to be a way to remotely get a list of zones from a running bind server (via AXFR like queries) so no such support for AxfrSource.

/cc octodns/octodns#1026

@ross ross self-assigned this Sep 7, 2023
@yzguy
Copy link
Contributor

yzguy commented Sep 8, 2023

I am not aware of a method to get a list of zones via AFXR or anything either unfortunately.

@ross ross merged commit 6490501 into main Sep 8, 2023
5 checks passed
@ross ross deleted the list-zones branch September 8, 2023 14:25
@blop
Copy link

blop commented Nov 26, 2023

Hi there, it seems that the ZoneFileSource.list_zones does not check that the zone names ends with a dot properly.

When using dynamic zones with octodns_bind.ZoneFileSource, we get a "Invalid zone name foo.tld, missing ending dot" further.

In our case, we don't have the final dot in the file names, so use file_extension: "", which is not working with your current implementation of list_zones. It would be better to remove the defined file_extension entirely and then adding a dot in all case.

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.

3 participants