X Tutup
The Wayback Machine - https://web.archive.org/web/20200914053758/https://github.com/github/octodns/issues/420
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

Public and Private DNS in Route53 #420

Open
opardalis opened this issue Nov 13, 2019 · 3 comments
Open

Public and Private DNS in Route53 #420

opardalis opened this issue Nov 13, 2019 · 3 comments

Comments

@opardalis
Copy link

@opardalis opardalis commented Nov 13, 2019

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

@ross
Copy link
Contributor

@ross ross commented Nov 13, 2019

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.

@yzguy
Copy link
Collaborator

@yzguy yzguy commented Nov 14, 2019

#260 and #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: #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: #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 private_zones: true to their provider.

@opardalis
Copy link
Author

@opardalis opardalis commented Nov 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.
X Tutup