I have hosted a site on github and encounter the following error in the Google Search Console URL inspection section.

enter image description here

The custom domain I'm using was purchased through Google Domains. How can I enable google indexing of my site?

Below is information about my DNS setup that might be helpful.

enter image description here

Below is the updated DNS setup.

enter image description here

  • Is your site up now? Was it down or having problems on Feb 17th? How long has it been since you first hosted the site? Feb 23, 2023 at 16:15
  • @StephenOstermiller good point, screenshot is from a previous data, but it still looks the same for today. And I hosted the site on Feb 1. Feb 23, 2023 at 16:18
  • You probably just need to give it more time. You need to give Google 2 weeks to see any changes you make. New sites often need 6 months. Feb 23, 2023 at 17:17
  • 1
    @StephenOstermiller, I would agree that you need to wait for more time for Google to index your page, but doesn't the error indicate a DNS or problem other than Google's indexing bot?
    – Trebor
    Feb 23, 2023 at 17:33
  • 1
    Could be. @TheNightman can you edit your question to add details about your DNS setup? Especially things like NS, A, and CNAME records and who's services you are using for DNS hosting. Feb 23, 2023 at 18:30

1 Answer 1


Of your DNS records, only one of them doing you any good. Keep this one for sure:

  • CNAME www.example.com

your TXT DNS record is not relevant for directing visitors to your site. It looks like it is used for HTTPS certificate generation. I wouldn't touch it either.

Your other three records are not good and should be removed:

  • HTTPS example.com -- HTTPS DNS records are only in a draft specification and should not be used. You should remove this record.
  • CNAME https://.example.com -- CNAME records should never contain https:// as part of the host name. You should remove this record.
  • CNAME https://www.example.com -- CNAME records should never contain https:// as part of the host name. You should remove this record.

You need to add the following record:

  • Type: A

  • Hostname: example.com (use your real domain name, without www. and without https://)

  • Values (These come from Github's documentation):

See GitHub's documentation about the apex of the domain for details

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.