transfering domain to another account

Photo by Matt Duncan on Unsplash

transfering domain to another account

AWS/Amazon Route 53

·

1 min read

  • outline

How to trasfer domain to another AWS account. Please follow below sequence.

  • source account
>> aws sts get-caller-identity --query "Account" --output text
1234567890
root@ ~
>> aws route53domains list-domains --region us-east-1
{
    "Domains": [
        {
            "DomainName": "example.com",
            "AutoRenew": true,
            "TransferLock": true,
            "Expiry": "2055-04-05T16:39:07+09:00"
        }
    ]
}
root@ ~
>> aws route53domains transfer-domain-to-another-aws-account --domain-name example.com --account-id 0987654321 --region us-east-1
{
    "OperationId": "n123456-tr32-4433-bd37-23523423456324634563",
    "Password": "AJSDFgkj#4#@"
}
  • destination account
root@ ~$ aws sts get-caller-identity --query "Account" --output text
0987654321
taegu@taegukang-PC:~$ aws route53domains list-domains --region us-east-1
{
    "Domains": []
}
root@ ~$ aws route53domains accept-domain-transfer-from-another-aws-account --domain-name example.com --password AJSDFgkj#4#@ --region us-east-1
{
    "OperationId": "n123456-tr32-4433-bd37-23523423456324634563"
}
taegu@taegukang-PC:~$ aws route53domains list-domains --region us-east-1
{
    "Domains": [
        {
            "DomainName": "example.com",
            "AutoRenew": true,
            "TransferLock": true,
            "Expiry": "2025-12-05T10:56:56+09:00"
        }
    ]
}
  • source account
root@ ~
>> aws sts get-caller-identity --query "Account" --output text
1234567890
root@ ~
>> aws route53domains list-domains --region us-east-1
{
    "Domains": []
}
  • important

NS information created in hosted zones on destination account, modify NS of registered domain on source account.

  • result
root@ ~
>> dig @8.8.8.8 +short example.com NS
ns-4444.awsdns-99.org.
ns-3333.awsdns-88.co.uk.
ns-123.awsdns-70.com.
ns-456.awsdns-05.net.