How to connect a domain to GitHub Pages
If you host your website on GitHub Pages, you can use your own domain registered with Unihost.kz. This guide will explain how to connect your domain to GitHub and set up DNS.
Step 1: Install Unihost.kz name servers
To manage DNS records, you must use Unihost.kz name servers. If you haven't changed your name server yet, follow these instructions:
How to change a domain's nameservers
ns1.unihost.kzns2.unihost.kz
Also, make sure you have activated free DNS hosting in your personal account.
Step 2: Add DNS records
- Go to my.unihost.kz → Products/Services → DNS Hosting
- Click on the active service and the Go
- Add your domain in the Domain Names
- Select your domain → click Records
If you are connecting a root domain (for example, example.kz ), create A records:
| Name | Type | Meaning |
| @ | A | 185.199.108.153 |
| @ | A | 185.199.109.153 |
| @ | A | 185.199.110.153 |
| @ | A | 185.199.111.153 |
If you are connecting a subdomain (for example, www.example.kz ), create a CNAME record:
| Name | Type | Meaning |
| www | CNAME | your_username.github.io |
For example, if your GitHub username is alex , enter alex.github.io .
Step 3: Set up GitHub Pages
- Go to your website's GitHub repository
- Go to Settings → Pages
- In the Custom domain , enter your domain (for example,
example.kz) - Click Save
After this, GitHub will automatically issue an HTTPS certificate for your domain.
Step 4: Wait for DNS to update
DNS records typically update within 15-60 minutes, but in rare cases it may take up to 24 hours.
After this, your site will become available under its own domain.