Add R53_ZONE as an domain identifier#1241
Conversation
|
Looks good so far. Please add some tests. It needs a test in pkg/js/parse_tests. I'd like to see a test in integrationTest/integration_test.go but I'm not sure if that's possible without hardcoding a Zone ID. |
Sure, I added some parse_tests. I am not sure how to run them locally. Could you tel me that? for both the pkg/js/parse_tests and the integrationTest/integration_test.go |
Regarding the integration tests, I am unsure how to do this. I do not know the ID beforehand. Which makes it hard to tests. I would need to change the intergration test runner such that we can get zoneId before trying the second time with another domain-name. But that seems pretty fragile to me. |
|
To run the tests locally just run My suggestion is to edit |
Yeah, sounds like there isn't a generic way to do this. Oh well. |
Thanks, and Done, I added the R53_alias as well like you suggested. It didn't run at first because of caching, but by adding |
|
Ah yes, `-count=1` is usually required because Go can't automatically
determine dependencies. I should make a note about that.
Tom
|
|
I dont see any comment about the doc rewrite, could you elaborate? |
|
I guess the suggestion about the docs didn't get saved the first time. Take a look now. |
Done |
|
Sorry for the delay, things have been busy here with Ida. I think this PR is ready for merge. If you agree, rebase and confirm that it is ready. |
Using R53_ZONE allows you to differentiate between split horizon domains across zones.
I rebased it (again). And yes it is ready to merge. |
|
Awesome! Thanks for this new feature! I'm sure everyone that uses AWS will appreciate it! |
Using R53_ZONE allows you to differentiate between split horizon domains across zones.
But why?
Well, imagine you have a hosted public zone called enrise.com and a private zone for enrise.com specific to a VPC. different enrise.com zones across different VPCs. In these examples DNSControl doesn't allow you to specify the zone by ID. This MR addresses this by using the
R53_ZONEdirective inside theDdirective