mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
ROUTE53: fix R53_ZONE() handling for domains (#2306)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
@@ -78,6 +78,30 @@ D("example.tld", REG_NONE, DnsProvider(DSP_R53),
|
||||
```
|
||||
{% endcode %}
|
||||
|
||||
## Split horizon
|
||||
|
||||
This provider supports spilt horizons using the `R53_ZONE()` domain function.
|
||||
|
||||
In this example the domain `testzone.net` appears in the same account twice,
|
||||
each with different zone IDs specified using `R53_ZONE()`.
|
||||
|
||||
```
|
||||
var DSP_R53 = NewDnsProvider("r53_main");
|
||||
var REG_NONE = NewRegistrar("none");
|
||||
|
||||
D('testzone.net!private', REG_NONE,
|
||||
DnsProvider(DSP_R53),
|
||||
R53_ZONE('Z111111111JCCCP1V7UW'),
|
||||
TXT('me', 'private testzone.net'),
|
||||
);
|
||||
|
||||
D('testzone.net!public', REG_NONE,
|
||||
DnsProvider(DSP_R53),
|
||||
R53_ZONE('Z222222222INNG98SHJQ2'),
|
||||
TXT('me', 'public testzone.net'),
|
||||
);
|
||||
```
|
||||
|
||||
## Activation
|
||||
DNSControl depends on a standard [AWS access key](https://aws.amazon.com/developers/access-keys/) with permission to list, create and update hosted zones. If you do not have the permissions required you will receive the following error message `Check your credentials, your not authorized to perform actions on Route 53 AWS Service`.
|
||||
|
||||
|
Reference in New Issue
Block a user