Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve error in AWS Route 53 - import zone file error : Multiple Distinct TTL values?

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.

like image 682
user618886 Avatar asked Dec 27 '15 06:12

user618886


2 Answers

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.
like image 89
user618886 Avatar answered Oct 05 '22 11:10

user618886


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.

like image 36
NealJMD Avatar answered Oct 05 '22 10:10

NealJMD