Skip to main content

GitHub Pages

warning

This document has been translated using machine translation without human review.

How to connect 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 an 'A' record

    • Create a CNAME record targeting username.github.io.

    Example of a 'CNAME' record

  2. Open Settings => Pages

    • Select a branch. Branch selection
    • Add CNAME in the "Custom domain" section and click Save.
    • Wait for the verification results.
    • Enable the "Enforce HTTPS" option when it becomes available. Custom domain
    • If the domain is unavailable for a long time (several hours), try removing it from GitHub and configuring it again.