Migrate DNS A records from AWS Route 53 (ingress-controller) to GoDaddy

Table of Content

Short story. AWS blocked our account and I wasn’t be able quickly restore an access to it. Thanks god we migrated all critical services from Amazon much earlier. Only Route 53 and S3 still are hosted there.
Was decided to restore the partial access without files (photo, pdf, xlsx, etc.)

We lost access to all DNS records but we can check at least A record in out K8s cluster.

kubectl get ingress --all-namespaces
NAMESPACE         NAME                            CLASS     HOSTS                                           ADDRESS                                     PORTS     AGE
prod              subscriber                      nginx     subscriber.popovserhii.app                 44.33.135.144,44.33.55.188   80, 443   202d
prod              web                             nginx     popovserhii.app,www.popovserhii.app   44.33.135.144,44.33.55.188   80, 443   202d
...

The original list can be much longer but the following steps are the same. Create .txt file with the content where each IP has a separate line:

$ORIGIN popovserhii.app.
$TTL 3600

@   IN  A    44.33.135.144
@   IN  A   44.33.55.188

www IN  A    44.33.135.144
www IN  A   44.33.55.188

subscriber IN  A    44.33.135.144
subscriber IN  A   44.33.55.188

Go to GoDaddy on Domain Portfolio.
Look for the domain you are interested in, click on it. Go to DNS.

Change Nameservers to the default GoDaddy. Select Default (GoDaddy default nameservers).

Import your .txt file, Actions -> Import Zone file

Withing 48 hours (usually quicker) the DNS records will be updated and your site will be available.

Leave a Reply

Your email address will not be published. Required fields are marked *