2 minutes
How to Setup Google Administrated Domain on AWS
All started when I decided to buy a .dev domain to replace this site which in the moment I was writing this post was on albert.back-end.info.
I usually use AWS Route53 to buy new domains but unfortunately there is no option to buy .dev domains.
I checked which options I had and I found that Google Domains was the cheapest option having a 12€ per year price over the 15€ that gives Godaddy.
Step by step setup
Since I had all the infra on AWS I decided to handle also there this domain, to do so I followed these steps:
- Enter to AWS Route53 console
- Create a new hosted zone with the Google Domains registered domain, in my case:
albertmoreno.dev
- Enter to Google Domains and choose DNS in the left panel
- Click to Export resources records and select BIND format
- Go back to Route53 and select Import zone file in the hosted zone, copy and paste the content of the BIND file
- Lower TTL on the NS records in Google Domains and Route53 to avoid downtimes if some configuration it’s wrong. Usually it’s
172800
seconds which means 2 days. - Get the Name servers from Route53 in the hosted zone details
- Update Google Domains setup in DNS > Name servers with Route53 name servers, you’ll need to select User custom name servers
- After some days if you don’t see any problem with the traffic restore the NS TTL value on Route53 back to 2 days