I am trying to import a zone file from Linode in to Amazon Route 53and I get the following error
Error parsing zone file: One resource cannot have multiple distinct TTL values
I know what it is trying to say, but I cannot find any where in the file the TTL values which are duplicates. Any hint is appreciated.
Thanks.
I went through the zone file by eliminating sections and trying to import it. Finally figured out the section that was giving me the grief. The MX records shown below are exactly as imported from Linode.
@ 3600 MX 1 ASPMX.L.GOOGLE.COM.
@ 3600 MX 5 ALT1.ASPMX.L.GOOGLE.COM.
@ MX 5 ALT2.ASPMX.L.GOOGLE.COM.
@ MX 10 ASPMX2.GOOGLEMAIL.COM.
@ MX 10 ASPMX3.GOOGLEMAIL.COM.
If I remove 3600 from the first two lines, I was able to import the file. Not sure why Linode gives out this file. So MX records now look like this when I import them.
@ MX 1 ASPMX.L.GOOGLE.COM.
@ MX 5 ALT1.ASPMX.L.GOOGLE.COM.
@ MX 5 ALT2.ASPMX.L.GOOGLE.COM.
@ MX 10 ASPMX2.GOOGLEMAIL.COM.
@ MX 10 ASPMX3.GOOGLEMAIL.COM.
I was getting the same error importing a zone file from DNSimple into Route 53. My problem was that I had multiple TXT records for the same domain, and those TXT records had different TTL values. In Route 53, records of the same type (TXT, MX, CNAME, etc) for the same domain or subdomain get grouped together in a "record set" with one TTL value, so my zone file was breaking it. As soon as I changed them all to the same TTL, the zone file could be imported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With