Skip to main content

GitHub Pages

How to use a custom domain?

  1. Configure DNS at the DNS hosting level:

    185.199.108.153
    185.199.109.153
    185.199.110.153
    185.199.111.153

    Example of A record

    • Create CNAME record to username.github.io.

    Example of CNAME record

  2. Open repository Settings => Pages

    • Select Branch. Select Branch
    • Add CNAME to "Custom domain" section and Save.
    • Wait for checking results.
    • Set the "Enforce HTTPS" option when it becomes available. Custom Domain
    • If the domain is down for a long time (several hours), try removing it from GitHub and set it again.