Connect GitHub Pages
Connect an apex domain and www to GitHub Pages with domain-takeover safeguards.
Open your domain’s DNS
- Sign in to your SaaSTech Servers Domain Portfolio External · opens new tab ↗.
- Select the individual domain to open its Domain Settings page.
- Select DNS.
Need help signing in? Find your username or password External · opens new tab ↗.
Verify the domain in GitHub
In your GitHub organization or account settings, add and verify the domain before connecting it. Verification helps prevent another repository from claiming a subdomain.Official GitHub Pages guideExternal · opens new tab ↗
Set the repository custom domain
In the repository, open Settings, Pages, and Custom domain. Enter the intended domain and save it before publishing DNS changes.
Back up DNS
Save the complete current zone and preserve all email and unrelated service records.Back Up Your DNSSaaSTech guide →
Add apex and www records
Add all four official GitHub Pages A records for the root. Point www to your GitHub Pages account hostname, such as account.github.io, using the exact account name.
Verify and enforce HTTPS
Wait for GitHub's DNS check, test root and www, enable Enforce HTTPS when available, and confirm email and other services still work. GitHub says DNS changes can take up to 24 hours.
Records and settings to prepare
| Type / change | Host / location | Value / target |
|---|---|---|
| A | @ | 185.199.108.153 |
| A | @ | 185.199.109.153 |
| A | @ | 185.199.110.153 |
| A | @ | 185.199.111.153 |
| CNAME | www | Your-account.github.io |
Replace Your-account with the correct GitHub user or organization hostname. Do not create wildcard records such as *.example.com.
