aws-cliでエクスポート、ゾーンファイル(bind)に整形してインポート
https://community.cloudflare.com/t/migrate-dns-from-route53-to-cloudflare/275542/2
The following script exports some zone details in bind format from Route53. Pass over the domain name as a parameter to script. (This required awscli and jq to be installed and configured.)
#!/bin/bash zonename=$1 hostedzoneid=$(aws route53 list-hosted-zones --output json | jq -r ".HostedZones[] | select(.Name == \"$zonename.\") | .Id" | cut -d'/' -f3) aws route53 list-resource-record-sets --hosted-zone-id $hostedzoneid --output json | jq -jr '.ResourceRecordSets[] | "\(.Name) \t\(.TTL) \t\(.Type) \t\(.ResourceRecords[]?.Value)\n"'It should be noted that records that are defined in AWS as pointing to another service will not be exported. You may want to switch to a CNAME for load balancers because their IP addresses can change.
https://stackoverflow.com/questions/20337749/exporting-dns-zonefile-from-amazon-route-53
ALIASレコードはエクスポートされない
NSはそのままだと
TTL changed from 172800 to 86400 because it was outside the allowed range.
の警告。インポート前に削除