dnscontrol: Route53 get-zones/preview/push doesn't handle trailing dots consistently
I’m spinning up dnscontrol for existing domains. I used get-zones to get records from one of my domains like this:
dnscontrol get-zones -format=js r53_creds ROUTE53 mydomain.com
The CNAMES look like this:
CNAME('www.truthdoug-test', 'test-web.mydomain.com')
If I past the records into dnsconfig.js and run preview, I get a lot of errors for these CNAMEs:
ERROR: In CNAME www.doug-test.mydomain.com: target (test-web.mydomain.com) must end with a (.) [https://stackexchange.github.io/dnscontrol/why-the-dot]
I get similar errors for MX records.
I can and will edit the js to get this to work but is there an option to get-zones that I’m missing?
(I’m using dnscontrol 3.0.0 installed on mac using homebrew)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (15 by maintainers)
Glad to help!
Funny story: I didn’t think I was able to fix it! When I fixed the get-zones problem I saw a solution to the other problem! Sometimes trying is half the battle!
I haven’t heard back from @Subramanian-ERS but the code seems to work. I’m going to merge it.