Setting Custom Domain with Fly.io and GoDaddy

Setting Custom Domain with Fly.io and GoDaddy

Hi there! it has been a while since then that I write something but here is something I want to share with regarding Setting Custom Domains with Fly.io and GoDaddy

Step 1

  • In fly.io, get your app name for example todo-app

  • Let's say you already bought a domain in that we can called example.com

Step 2

Run the following commands

flyctl ips list -a todo-app
  • this will show you the IPV4 and IPV6 that you will use later.

  • head over to your DNS provider ( which GoDaddy ) and then create an A and AAAA records for example.com with the IPV4 and IPV6 values.

flyctl certs create -a todo-app example.com
flyctl certs show -a todo-app

This command will show something like this


Hostname                  = todo-app.io

DNS Provider              = godaddy

Certificate Authority     = Let's Encrypt

Issued                    = rsa,ecdsa

Added to App              = 13 minutes ago

Source                    = fly

And thats it! You can visit your website by going to todo-app.io

Let's Trouble Shoot!

Just in case you encounter this error...

A Record (XX.XXX.XXX.XXX) does not match app's IP (XXX.XXX.XX.XX)
Address resolution (XX.XXX.XXX.XXX) does not match app's IP (XXX.XXX.XX.XX/--------)
You are creating a certificate for todo-app.io
We are using lets_encrypt for this certificate.

You can validate your ownership of one-to-one.app by:

1: Adding an AAAA record to your DNS service which reads:

    AAAA @ ---------

go back to your DNS provider ( GoDaddy) and delete a record that has something like this

A @ Parked

and then run again

flyctl certs show -a todo-app

And it should show that it is good now!

Happy Coding!

ย