Set Up Custom domain to github page using Namecheap

Settings on Github

  1. Set up your github page
  2. Purchase a domain name from namecheap.
  3. Set the domain name in custom domain field in pages section of the repository

Settings on Namecheap

  1. Open namechep dashboard
  2. Open Domains List and select the domain. Click on manage in domain settings.
  3. set name servers as – NameCheap Basic DNS
  4. Open Advanced DNS section
  5. set A records, AAAA records and CNAME record as in the following
    Scenario DNS Record Type DNS Record Name DNS Record Value(s)
    Apex domain
    (example.com)
    A @ 185.199.108.153
    185.199.109.153
    185.199.110.153
    185.199.111.153
    AAAA @ 2606:50c0:8000::153
    2606:50c0:8001::153
    2606:50c0:8002::153
    2606:50c0:8003::153
    ALIAS or ANAME @ USERNAME.github.io
    or ORGANIZATION.github.io
    Subdomain
    (www.example.com, blog.example.com)
    CNAME SUBDOMAIN.example.com USERNAME.github.io
    or ORGANIZATION.github.io