-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Public and Private DNS in Route53 #12
Comments
Not familiar with a setup that uses a single zone for both internal and external records and octoDNS doesn't have any Route53 code specific to handling that sort of set up. We manage dozens of internal zones and dozens of external zones, but nothing that's both. |
octodns/octodns#260 and octodns/octodns#190 are essentially the same thing. It's somewhat trivial to add it just looking at public hosted zones or private hosted zones. The tougher part is how to keep them in config/dump because with a very basic configuration one would overwrite the other. I believe your earlier response: octodns/octodns#260 (comment) is probably the way to go You would have providers configured like route53:
class: octodns.provider.route53.Route53Provider
access_key_id: env/AWS_ACCESS_KEY_ID
secret_access_key: env/AWS_SECRET_ACCESS_KEY route53_private:
class: octodns.provider.route53.Route53Provider
access_key_id: env/AWS_ACCESS_KEY_ID
secret_access_key: env/AWS_SECRET_ACCESS_KEY
private_zones: true Then you can use them like normal. I have a draft PR up for the small change but need to work on coverage and hear any feedback: octodns/octodns#421 This would be somewhat of an impactful change for people who use OctoDNS for private hosted zone management already, as they would need to go add the |
Thanks, I use that info above to make it work. Honestly, I just need to get the data out of Route53 via octodns-dump, we're migrating to a new provider and in the future the public/private wont be over the same domain again. The dump saves me time since we have so many records. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
From: octodns/octodns#728 (comment)
Doesn't look like it. I guess it stalled out and was forgotten about. My gut says that the VPC-ID would be better tied to provider rather than per zone, that way you could do things like: providers:
vpc-1234:
...
vpc-2345:
....
zones:
something.in.both.:
sources:
..
targets:
- vpc-1234
- vpc-2345 Don't off-hand know if that'll run into any problems. Working on |
Reopening this while I'm investigating things, but this is looking really complicated. My above thinking of doing Going to poke around a bit more, but not seeing an obvious path and the non-obvious ones are enough work that it's not going to happen short of someone interested in paying for the research & development required. |
OK. So I think this is doable, but as mentioned above more involved than I have the time to devote to it as free/OSS work atm. Mostly the API for managing this stuff is multi-step and thus requires lots of edge case and error handling as well as the complications involved in keeping the associated VPCs in sync. Going to leave this here & open atm. The bot will auto-close if it ends up sitting. /cc @JohanLeirnes fyi |
Would leveraging hosted zone tag matching be a viable option? Or possibly hosted zone ID, but then in restricted environments like govcloud, we would not be able to have the hosted zone ID in configurations residing outside of the boundary. |
The state would end up needing to live somewhere, object tags and/or records, e.g. TXT values are possibilities. Without doing the research and some prototyping it's hard to say what would fully work. |
Yes. And I imagine having per-zone provider environment variables would be a major feature. Not sure what the value might be outside of Route53 though. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Am I missing step somewhere? How to distinguish between the public and private hosted zone types in Route53?
We have a single domain for both public and private, the data within is obviosuly very different. We'd like to migrate away from RoadWorker and possible use OctoDNS. When I run octodns-dump it only grabs the private data, not the public. How do you grab both, and ultimately manage and sync both from separate config files?
Thanks
The text was updated successfully, but these errors were encountered: