Closed BrandonPotter closed 7 years ago
(Edited to correct values that I screwed up in translating this to generic example.com)
Logs from dnscontrol after manually modifying the Route 53 records and running dnscontrol again...
Initialized 1 registrars and 1 dns service providers.
******************** Domain: example.com
----- Getting nameservers from: r53
----- DNS Provider: r53... 1 correction
#1: MODIFY MX department.example.com: (0 mail4.example.com. 300 priority=0) -> (0 example.com. 300 priority=0)
Thanks for the report. Trying to reproduce now.
Ah. I think I see the problem. Our documentation does not include all of the functions yet, including MX. My bad.
MX should specify priority, then target: MX("@", 5, "mail4", TTL(600))
Validation should also have caught this, both in the javascript, and in the backend.
D'oh, this was the only record in my file that didn't have priority in it - didn't even see that.
Can confirm works with priority parameter specified. Feel free to close.
Gonna leave open to address the usability issue. It should be easy to check the types of the arguments to make sure we get a number and a string. And the backend should have rejected an empty target as well, instead of silently converting it to "@" somehow. And the docs.
I totally blame us on this one.
https://github.com/StackExchange/dnscontrol/pull/163 will help (and may fix) this problem.
I'm a little fuzzy on why this would be happening, but it seems like a possible bug in the route53 provider.
I have a MX record for a subdomain subdomain, i.e.
someone@department.example.com
that should point to A record ofmail4.example.com
.Using either:
or...
... it ends up in Route 53 with a recordset value of:
If I manually change the record in Route 53 to
mail4
ormail4.example.com.
, dnscontrol picks up the change difference and changes it back toexample.com.
, so it seems like an issue in the dnscontrol Route 53 provider.