@vivekcsein-logo
  • Home
  • About
  • Development

    • Web Development
    • Performance & Optimization
    • Backend & APIs
    • Authentication & Security

    Specialized

    • SEO & Ad Monetization
    • AR Experiences
    • Animation
    • Figma to Code
  • Articles
  • Projects
  • Marketplace
  • Contact
@vivekcsein-logo

A portfolio full stack developer with a passion for building scalable and high-performance web applications.

Explore

  • Home
  • About

Services

  • Web Development
  • Backend & APIs
  • Performance Optimization
  • Security & Authentication

Connect

  • Contact
  • Privacy
  • Terms
  • Home
  • About
  • Web Development
  • Backend & APIs
  • Performance Optimization
  • Security & Authentication
  • Contact
  • Privacy
  • Terms

© @vivekcsein. All rights reserved.

  • Home
  • All Articles47
  • Featured
  • Recently Added
  • Most Read
  • Bookmarks
Topics
  • Interview3
  • 3d4
  • Ai Prompts2
  • Business3
  • Deployment1
  • Dev2
  • Frontend5
  • Getting Started2
  • Security2
  • Seo2
  • Workflow10
  • Backend1
  • Deployment1
    • Connecting a GoDaddy Domain to GitHub Pages with SSL
  • Security1
  • Javascript1
  • Client Advisory5
  • Engineering2
Collections
  • Docs
  • Tutorials
  • Resources
  • Articles
“A better developer every single day.”
— Vivek
  1. Tutorials
  2. Deployment
  3. Connecting a GoDaddy Domain to GitHub Pages with SSL
Deployment

Connecting a GoDaddy Domain to GitHub Pages with SSL

Step-by-step guide to deploying a site on GitHub Pages, pointing a GoDaddy domain at it with DNS records, and enabling free HTTPS.

Updated Sep 12, 20263 min read
On this page

On this page

  • Prerequisites
  • Step 1: Enable GitHub Pages
  • Step 2: Add the CNAME file to your repo
  • Step 3: Configure DNS on GoDaddy
  • A records (for the root/apex domain vivekcse.xyz)
  • CNAME record (for www.vivekcse.xyz)
  • Remove conflicting records
  • Step 4: Set the custom domain in GitHub
  • Step 5: Wait for DNS propagation
  • Step 6: Enable "Enforce HTTPS"
  • Troubleshooting
  • Quick reference: final DNS table for vivekcse.xyz

This guide walks through deploying a site on GitHub Pages and connecting a custom domain purchased on GoDaddy, with HTTPS/SSL enabled — using vivekcse.xyz as the example domain throughout.


Prerequisites#

  • A GitHub repository with your site's code (e.g. username/vivekcse.xyz or username/username.github.io)
  • A domain purchased on GoDaddy (example: vivekcse.xyz)
  • Repo has GitHub Pages enabled (Settings → Pages)

Step 1: Enable GitHub Pages#

  1. Go to your repository → Settings → Pages
  2. Under Source, choose the branch to deploy from (e.g. main) and folder (/root or /docs)
  3. Click Save

GitHub will give you a default URL like https://username.github.io/vivekcse.xyz/. Confirm this works before moving on.


Step 2: Add the CNAME file to your repo#

In the root of your repository, create a file literally named CNAME (no file extension) containing just your domain:

text
vivekcse.xyz
  • No http:// or https://
  • No trailing slash
  • No www

Commit and push this file. GitHub also lets you set this from Settings → Pages → Custom domain (it writes the same file automatically).


Step 3: Configure DNS on GoDaddy#

Log in to GoDaddy → My Products → vivekcse.xyz → DNS / Manage DNS.

A records (for the root/apex domain vivekcse.xyz)#

Add all four of GitHub Pages' IP addresses as separate A records on @:

TypeNameValue
A@185.199.108.153
A@185.199.109.153
A@185.199.110.153
A@185.199.111.153

CNAME record (for www.vivekcse.xyz)#

TypeNameValue
CNAMEwwwusername.github.io.

Replace username with your actual GitHub username or org name.

Remove conflicting records#

  • Delete any pre-existing A record GoDaddy added by default (often a "parked page" IP)
  • Delete any domain forwarding rule under GoDaddy → Domain settings → Forwarding — this conflicts with GitHub Pages and can block SSL issuance
  • Do not leave a CNAME on @ — root domains can only use A records (or ALIAS/ANAME if GoDaddy supports it)

Step 4: Set the custom domain in GitHub#

  1. Repo → Settings → Pages
  2. Under Custom domain, enter vivekcse.xyz
  3. Click Save

GitHub will run a DNS check. If your A records are correct, it will confirm the domain.


Step 5: Wait for DNS propagation#

DNS changes usually take a few minutes to a few hours, occasionally up to 24 hours.

To check propagation:

  • Use a tool like whatsmydns.net and search vivekcse.xyz, record type A
  • Confirm all 4 GitHub IPs (185.199.108–111.153) appear across most locations

Step 6: Enable "Enforce HTTPS"#

Once DNS propagates and GitHub verifies ownership:

  1. Go back to Settings → Pages
  2. The Enforce HTTPS checkbox will become available (it's greyed out until GitHub issues a certificate via Let's Encrypt)
  3. Check the box

Your site will now be served at:

text
https://vivekcse.xyz

with automatic HTTPS, and http://vivekcse.xyz / www.vivekcse.xyz will redirect to it.


Troubleshooting#

ProblemLikely causeFix
"Enforce HTTPS" greyed outDNS not fully propagated or A records incompleteRecheck all 4 A records exist on @, wait for propagation
www.vivekcse.xyz works but vivekcse.xyz doesn'tMissing A records on rootAdd the 4 GitHub A records to @
Domain shows GoDaddy parking pageForwarding still enabledDisable GoDaddy domain forwarding
Certificate stuck / not issuingGitHub cert cache issueRemove the custom domain in Settings → Pages, save, wait 1 minute, re-add it
ads.txt / verification file not found at rootFile only in a subfolderEnsure the file sits at repo root so it resolves at vivekcse.xyz/ads.txt

Quick reference: final DNS table for vivekcse.xyz#

TypeNameValue
A@185.199.108.153
A@185.199.109.153
A@185.199.110.153
A@185.199.111.153
CNAMEwwwusername.github.io.

Keep reading

  • Backend

    Create an API with Hono

    Standing up a typed REST API with Hono, from an empty project to a validated, deployable route.

    1 min read·Sep 14, 2026
  • Deployment

    Technical Implementation Guide: Static Next.js + Supabase Auth + GitHub Actions Deployment

    Technical guide to hosting a static Next.js site for free: Supabase auth, a GitHub Pages custom domain and a GitHub Actions deployment workflow.

    7 min read·Sep 12, 2026
  • Seo

    Vercel Subdomain Indexing & Ad Monetization Guide

    How search indexing works on *.vercel.app subdomains and why they don't qualify for AdSense or Media.net, with an indexing checklist and a custom-domain roadmap.

    4 min read·Sep 12, 2026

On this page

  • Prerequisites
  • Step 1: Enable GitHub Pages
  • Step 2: Add the CNAME file to your repo
  • Step 3: Configure DNS on GoDaddy
  • A records (for the root/apex domain vivekcse.xyz)
  • CNAME record (for www.vivekcse.xyz)
  • Remove conflicting records
  • Step 4: Set the custom domain in GitHub
  • Step 5: Wait for DNS propagation
  • Step 6: Enable "Enforce HTTPS"
  • Troubleshooting
  • Quick reference: final DNS table for vivekcse.xyz