amazon-web-servicesherokudnsamazon-route53

Switched host and DNS years ago and everything still points to the old host


In college I setup a personal website that was hosted on Heroku with the domain registered in GoDaddy. I now work professionally with AWS (although not doing this sort of thing) and wanted to move DNS and hosting over to AWS.

I moved ownership of the domain over to AWS and followed the S3 static hosting guide (which works when I just use the buckets url) but the website itself still points to Heroku.

At first I thought it just needed time to update but at this point I have tried the process again 2 or 3 times in as many years and the website still points to Heroku.

What I've tried:

  1. Waiting for DNS TTL
  2. Followed the AWS Documentation on Route 53
  3. Flushed the domain on Google and 1.1.1.1
  4. Deleted the buckets/hosted zone multiple times and restarted.
  5. Deleted/relinquished everything in GoDaddy and Heroku accounts (which I no longer have access to in Heroku's case)
  6. Flushing my local DNS cache

I'm really not sure what to try next, but I own a domain and I sure would like to use it. Lots of other people have had this issue but almost everyone says to just give it time. What's the next step here?


Solution

  • Currently your nameservers are ns55.domaincontrol.com and ns56.domaincontrol.com which belong to GoDaddy. Your A records are correct for the root of your domain name:

    
    $ dig a <yourdomain.com>  # redacted for privacy
    
    <yourdomain>.com.       600 IN  A   15.197.142.173
    <yourdomain>.com.       600 IN  A   3.33.152.147
    

    But the www hostname still points to the Heroku IP addresses:

    
    $ dig a <www.yourdomain.com>  # redacted for privacy
    
    www.<yourdomain>.com.   3480    IN  CNAME   <appname>.herokuapp.com.
    <appname>.herokuapp.com. 300 IN CNAME va05.ingress.herokuapp.com.
    va05.ingress.herokuapp.com. 60  IN  A   54.224.34.30
    va05.ingress.herokuapp.com. 60  IN  A   54.243.129.215
    va05.ingress.herokuapp.com. 60  IN  A   54.208.186.182
    va05.ingress.herokuapp.com. 60  IN  A   34.201.81.34
    

    Apparently you forgot to update the www hostname on your GoDaddy DNS control panel.