Great! Since you’re using Blacknight in Ireland for your domain registrar, here’s how to connect your custom domain to your GitHub Pages site step by step:
Step 1: Configure DNS on Blacknight
A) Determine your control panel type:
- If your account was created after June 2022, you’ll use the new interface at
cp.blacknighthosting.com
. - Otherwise, you’ll use the older panel at
cp.blacknight.com
(help.blacknight.com).
B) Log in:
- For new interface: go to Domains → Manage DNS → Edit Zone for your domain (help.blacknight.com).
- For older panel: go to Home → Hosted Domains → select your domain → Web → Remove Hosting, then switch to the DNS tab (help.blacknight.com).
C) Add the required DNS records:
-
Add four A records for the root domain (leave the “Domain” field blank or use
@
):- 185.199.108.153
- 185.199.109.153
- 185.199.110.153
- 185.199.111.153 (help.blacknight.com, Medium)
-
Add a CNAME record for the
www
subdomain:- Name:
www
- Canonical Name:
<your-username>.github.io.
— don’t forget the trailing dot (help.blacknight.com, Medium)
- Name:
Step 2: Add the Custom Domain on GitHub
- Open your repository on GitHub that hosts your Pages site.
- Go to Settings → Pages.
- In the Custom domain field, enter your full domain (
example.com
orwww.example.com
) and click Save. - This action creates a
CNAME
file in the repository automatically (Medium, GitHub Docs).
Step 3: Wait for DNS Propagation & Enable HTTPS
- DNS changes can take up to 24 hours to propagate fully (Medium, Reddit).
- After propagation, return to your GitHub Pages settings and check “Enforce HTTPS” to secure the site.
Quick Recap
Step | Action |
---|---|
1 | Log in to relevant Blacknight control panel |
2 | Remove any hosting or forwarding |
3 | Add A records (four GitHub IPs) and CNAME for www |
4 | Add the custom domain in GitHub Pages settings |
5 | Wait for DNS to update, then enable HTTPS |
Let me know if you’d like help navigating the Blacknight interface or screenshots for the new or old panel. Happy to guide you through any step!