-
Notifications
You must be signed in to change notification settings - Fork 1
Handle MS AD (or similar) zone where the forward zone is not owned by Route 53 local zone #29
Comments
|
per @badra001 Ok, here is what happened with this host. Tags:
stop and start
It did not use the boc:dns:zone. It is expected that it would not use it for the A and its TXT records, as that domain does not (and cannot) exit in route53. However, I'd like the PTR and the PTR TXT to use this domain. Now the question is, how do we enable that behavior? |
|
per @badra001 I was thinking about it more today. Create a tag boc:dns:options on the instance
But it would be nice to have an option to register a different domain for a PTR vs the A/AAAA. For that we may need boc:dns:name_reverse |
|
from @cho00013 parsing through the script and email. Created an issue for this to track it in case.
Yes, the result sounds right - the logic always uses the R53 associated VPC domains either DHCP scope domain OR boc:dns:zone specified but it needs to be a Route 53 private hosted zone associated with the DNS. So even though you specified "csp1.ead.census.gov" in the tag, it is not considered as a valid domain since it is not R53 PHZ. So what we need is some trigger to let the script know that a custom zone is being used that is not VOC Associated Route 53 PHZ.
Few thoughts to your proposal.
So the logic introduction and change is actually going to take some time to redo and re-write. How urgent do you think this is? Reading the option should not be that big deal but we will need to modify good chuck of the logic to do what we intend. Anyway, let me know what you think. I might be able to spend some time next week but may not be devote to it until sometime the week after. |
Yes, this is the case.
Yes.
The option of
Yes. We may want a TXT only one too.
I don't think this is needed. A combination of
We may want a cname for a Windows hosts, so yes.
RIght.
If you can't work on it, that's fine, I just wanted some thoughts on it. |
|
I'd like to remove "only" from the description. We woudl have options:
|
Do you think you can come up unique use-case scenarios? Here's 3 that I can think of currently - there are probably some variation of them. But for each use-case, we can map out what the "tag option" values should/could be that will support that scenario.
|
|
Yes, let's get the use-cases ironed out so that we know exactly what options exists. So for each use-case, you should determine what the tag options should be. if you look at the code and look at section 644, you can add the different use-case to the logic where A records are created. The actual code below that creates the A/PTR should also be modified slightly to to skip creation based upon the tag option. But the custom zone option must come before the "default" behavior. The CNAME portion would require looking at line 924 and adding additional boolean check. Let me know if you need help but few recommendations:
I think you figured it out but stopping and starting the instance basically performs the test. Instead of stopping/starting, you can also find the actual event definition and test it directly on the Lambda by creating the test event. |
|
I can easily start/stop some test instances. Thanks. |
|
I think the first one to implement is "none" which means I could then just manually (through TF) add the PTR entry. We have only one instance in the EDL account for this, but on the main govcloud ones we have a lot. As they all are created by CloudForms in do2-govcloud, that has to be working properly without any manual intervention. |
Does it make sense to have a global ENV on the Lambda that basically skips DDNS functions no matter what's in the instance? So you can deploy the solution to that Account, but it really doesn't do anything. So DDNS_Enable = False would mean that that script just exits without doing any other validation. Anyway, might be good way to quickly disable the solution in a particular account without potentially deleting the stack/resources. The other option is to disable the event rule that creates the trigger but that may not be as obvious. |
I don't want to skip everything, just the Windows ones. But, a rapid bypass, maybe .. |
per @badra001
Hi. I have enabled the dynr53 code in a different account and region. I'm about to do a second one.
One thing that just came up -- Windows hosts. They get an A record added automatically to csp1.ead.census.gov by Windows itself (through DDNS). We need to add the PTR (and associated TXT).
If we have the host with the following tags:
Name = edlw001appd
boc:dns:zone = csp1.ead.census.gov
It will not have a valid zone for the A and its associated TXT record.
However, the PTR zone is available. Do you recall if we will handle just a PTR (+TXT) if the forward zone doesn't exist?
The text was updated successfully, but these errors were encountered: