Assign a .tk domain to a Glitch project


#1

Hello! I am wondering if I can assign a .tk domain to my Glitch project (https://aklox.glitch.me).

I have tried to get CloudFlare to link my Glitch project domain but I get a Please ensure you are providing the root domain and not any subdomains (e.g., example.com, not subdomain.example.com) (Code: 1116)

Thus, when adding the .tk domain I get a aklox.tk is not a registered domain (Code: 1049) error.

How can I connect my Glitch project to a .tk domain then?

The owner of .tk domains is Freenom. They don’t allow you to enter a URL to redirect/foward to. Only IP addresses are accepted.

Any help would be appreciated :pray:


#2

We don’t support custom domains yet ourselves, but you can set one up using a third-party. We recommend https://fly.io as they make it super easy and have a glitch option.


#3

I have tried that but fly.io asks you to point your domain to a URL. Thus, freenom doesn’t support records pointing to a URL. Also, fly projects can’t be accessed just by their IPs.


#4

You can get the IP for the fly.io address it generates by pinging it. Then use that record in an A name record. That’s how one of mine works.


#5

That didn’t work for me. Here’s a video showing you what I did:

Click here for the video

Sorry if my screen recorder didn’t record with a good frame rate.

Otherwise, do Glitch projects have their own IPs? I don’t mind if it changes every time my app restarts.


#6

You did right up to and including getting the IP address. You then need to go to your domain name registrar’s site and create an A name record for your domain using that IP address. It doesn’t matter that you can’t access your site when visiting the IP itself, it isn’t unique to you.

Glitch apps don’t have a unique IP address and can change at any time.


#7

Thank you for your help! I have sucessfully got my project (https://aklox.glitch.me) running on the domain: https://aklox.tk

Thank you! :grinning:


#8

I also made a post explaining how to get your own custom domain!

You can find the post bellow:


#9

Great news, and that’s cool - thanks for putting that together!