If your Page isn't loading at your custom domain, you may have an error in your CNAME setup.

The CNAME file isn't properly formatted

  • The CNAME filename must be uppercase
  • Only the bare domain or subdomain should be listed, e.g., example.com or blog.example.com, not https://example.com

Multiple domains in CNAME file

A CNAME file can contain only one domain. To point multiple domains to the same Page, set up redirects through your domain registrar or DNS host.

DNS errors

In order to serve the Page, your DNS must point to our server.

  • If you are serving a top-level domain like example.com, you should have an ALIAS record pointing to username.github.io. If you cannot use an ALIAS record, you will need to create A records that point to 192.30.252.153 and 192.30.252.154
  • If you are using a subdomain, like www.example.com or blog.mydomain.com, you should have a CNAME record pointing to username.github.io

If you need help creating these records, contact your domain registrar or DNS host.

You can test that your DNS is pointing to our servers by using the dig command on OSX and Linux:

dig example.com +nostats +nocomments +nocmd
example.com.     3600    IN A     199.27.73.133

You may see a different IP address, since we serve Pages with a global Content Delivery Network. Use dig username.github.io to see the full resolution path. Note that DNS caching may cause a delay.

If you are using an A record that points to 207.97.227.245 or 204.232.175.78, you will need to update your DNS settings, as we no longer serve Pages directly from those servers.

For more information, see Setting up a custom domain.