how to use your freedns domain with github pages

hi! today i will show how to use your freedns domain with github pages. but first, i want to demonstrate something.

i switched to english when writing my blog posts, because nobody understands turkish, and english is much more reliable.

ok. let's begin!

1. get your domain

go to freedns and create an account. then, create these 4 entries:

 

here is what the form looks like:


replace sctech.mooo.com with your domain.

2. add it on github pages 

automatic method:

go to the settings tab in your github pages repo. select "pages" from the sidebar.

then, write your domain into the textbox and click "save", and check "Enforce HTTPS" and you're done! it may take a few hours for it to fully work.

manual method:

create a file called "CNAME" in the root of your site. only write your domain into it. example: "sctech.mooo.com" without the quotes. and you're done! it may take a few hours for it to fully work.

bonus: impatient?

now i will teach you how to add it to your hosts file, so you don't have to wait!

the hosts file is there regardless of your os. here is a few locations that you can find your hosts file in:

linux/macos: /etc/hosts

windows: C:\Windows\System32\drivers\etc\hosts

then, add these four lines:

185.199.108.153 yourdomain.example.org

185.199.109.153 yourdomain.example.org  

185.199.110.153 yourdomain.example.org 

185.199.111.153 yourdomain.example.org
replace yourdomain.example.org with your domain.

try navigating to your domain to see it works!

Yorumlar