Skip to content

Custom Domain for GitHub Pages: clarify what values to use for DNS records (ALIAS etc., CNAME) #13645

@alzafacon

Description

@alzafacon

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site

What part(s) of the article would you like to see updated?

Docs imply the Host value for CNAME records is www.example.com. For example "create a CNAME record that points www.example.com to <user>.github.io". But the correct Host value is www. Instead "create a CNAME record that points www to <user>.github.io." could be better (also notice the . I added after <user>.github.io).

Similarly "To create an ALIAS or ANAME record, point your apex domain to the default domain for your site." implies the Host value is the apex domain but actually the Host value should be @.

Additional information

The docs already recommend the user to check their DNS providers documentation for details on setting up DNS records. Since the specific Host values could differ from provider to provider.

However I think the docs could be better if the wrong Host values were not implied, either by stating the correct values inline or clearly showing the values of the DNS records, for example:

ALIAS record value
Host @
Target <user>.github.io.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teampagesContent related to GitHub Pageswaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions