OrgPad logo

Personal website via github pages on custom domain (1 hour)

Created by Vít Kalisz

#github, #github pages, #personal web, #web

Personal website via github pages on custom domain (1 hour)

Create your own account on github.com

Go register your domain

You can do it with several providers, we will be using https://www.onebit.cz/en/domeny/.

Create a repository

The repository's name must be in the form <username>.github.io

image

Main domain (no subdomain)

https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#using-an-apex-domain-for-your-github-pages-site

Further details: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain

Go to your domain DNS settings

image

https://www.oneadmin.cz/onebit/?mng=service&subcat=dnssrv

Create a file for testing

image

image

Verify it works 1

  1. Open the command line by pressing Windows and searching for CMD
  2. Type in: nslookup <yourdomain>

image

Add the following four A-records

185.199.108.153

185.199.109.153

185.199.110.153

185.199.111.153

At the end, it should look somewhat like this: 

image

The form looks like this

image

In the repository settings go to Pages

image

Add the following four AAAA-records

2606:50c0:8000::153

2606:50c0:8001::153

2606:50c0:8002::153

2606:50c0:8003::153

At the end, it should look like this:

image

The form looks like this

image

Enforce HTTPS

image

Now, add a CNAME record for the www subdomain

image

First, it may look something like this

image

Verify it works

image

Verify it works 2

With IPv6 it should look somewhat like this:

image

In a couple of minutes, it shoult work after a page reload

image

Web based tools to verify even without a command line/ terminal

https://dns.google.com/

or

https://www.whatsmydns.net/

The repository looks like this

image