我正在尝试将Namecheap区域文件导入到Route53。
这是区域文件:
@ 3601 IN SOA parkingpage.namecheap.com. example.gmail.com. 2018071000 86400 7200 3600000 3601
@ 3600 IN NS dns1.registrar-servers.com.
@ 3600 IN NS dns2.registrar-servers.com.
@ 3600 IN MX 10 eforward1.registrar-servers.com.
@ 3600 IN MX 10 eforward2.registrar-servers.com.
@ 3600 IN MX 10 eforward3.registrar-servers.com.
@ 3600 IN MX 15 eforward4.registrar-servers.com.
@ 3600 IN MX 20 eforward5.registrar-servers.com.
www 1800 IN CNAME parkingpage.namecheap.com.
@ 3600 IN TXT v=spf1 include:spf.efwd.registrar-servers.com ~all
我从Route53得到的错误是:
Error parsing zone file: Error in line 1: no owner (encountered after 0 correct records) In line: @ 3601 IN SOA parkingpage.namecheap.com.
我看到了related question,但它与GoDaddy有关,并且错误消息有所不同。
答案 0 :(得分:1)
进行了两项更改,我能够成功导入:
$ORIGIN www.example.com
最终的区域文件如下所示
$ORIGIN www.example.com
@ 3601 IN SOA parkingpage.namecheap.com. example.gmail.com. 2018071000 86400 7200 3600000 3601
@ 3600 IN NS dns1.registrar-servers.com.
@ 3600 IN NS dns2.registrar-servers.com.
@ 3600 IN MX 10 eforward1.registrar-servers.com.
@ 3600 IN MX 10 eforward2.registrar-servers.com.
@ 3600 IN MX 10 eforward3.registrar-servers.com.
@ 3600 IN MX 15 eforward4.registrar-servers.com.
@ 3600 IN MX 20 eforward5.registrar-servers.com.
www 1800 IN CNAME parkingpage.namecheap.com.
@ 3600 IN TXT v=spf1 include:spf.efwd.registrar-servers.com ~all
答案 1 :(得分:0)
在Route 53中创建区域时,会自动创建NS和SOS。
创建区域,然后添加MX,TXT和CNAME记录,而不是导入。