Search code examples
gitlabgitlab-pages

Gitlab Pages: Failed to verify domain ownership


This morning I got emails for each of my Gitlab Pages that are hosted on custom domains, saying that the domain verification failed.

That's fine, because I don't think I ever verified them in the first place - good on Gitlab for getting this going.

When I head on over the the Settings>Pages>Domain_Details on each repo, I see the instructions to create the following record:

_gitlab-pages-verification-code.blog.ollyfg.com TXT gitlab-pages-verification-code={32_digit_long_code}

On creating this record, and clicking the "Verify Ownership" button, I get the message "Failed to verify domain ownership".

I have ensured that the record is set, and calling

dig -t txt +short _gitlab-pages-verification-code.blog.ollyfg.com

Returns:

"gitlab-pages-verification-code={same_32_digit_long_code}"

Is this a bug in Gitlab? Am I doing something wrong?

Thanks!


Solution

  • Wait for sometime, it worked for me. Initially, having the same problem as you mentioned.

    Also, you may find this page useful: https://gitlab.com/help/user/project/pages/getting_started_part_three.md#dns-txt-record

    It might be worthwhile, trying with: blog.ollyfg.com instead of: _gitlab-pages-verification-code.blog.ollyfg.com