401 Unauthorized after adding custom domain

Have tried to fix this for 7 hours straight. I have attached a custom domain http://dudelaunch.com to my gitlab project but its just showing a 401 Unauthorized.

I don’t understand why its so difficult on Gitlab to add a custom domain. Project is being deployed without any error but when I go to access the domain its a 401.

Please advise.

Everything is public


please ensure that your domain is verified first under Settings > Pages. Post a screenshot from there please.

The TXT record for verifying your custom domain seems not correct. You can verify this by yourself with

dig -4 dudelaunch.com any
;; Truncated, retrying in TCP mode.

; <<>> DiG 9.10.6 <<>> -4 dudelaunch.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40699
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 512
;dudelaunch.com.			IN	ANY

dudelaunch.com.		3310	IN	TXT	"_gitlab-pages-verification-code.dudelaunch.com TXT gitlab-pages-verification-code=a59bfdb697f33ea6c8286127ed54720b"
dudelaunch.com.		86110	IN	NS	ns4.wixdns.net.
dudelaunch.com.		86110	IN	NS	ns5.wixdns.net.
dudelaunch.com.		3310	IN	A
dudelaunch.com.		3310	IN	SOA	ns4.wixdns.net. support.wix.com. 2020071522 10800 3600 604800 3600

;; Query time: 30 msec
;; WHEN: Mon Jul 20 20:42:27 CEST 2020
;; MSG SIZE  rcvd: 280

The TXT record itself contains the whole string for a TXT record which is not correct.

Please share a screenshot of your DNS provider.

If you want to attempt to change this yourself, ensure that you use key-value pairs like

  • Key: _gitlab-pages-verification-code.dudelaunch.com
  • Type: TXT
  • Value: gitlab-pages-verification-code=a59bfdb697f33ea6c8286127ed54720b

Since the TTL of your zone is 3600s (1h) it may take a while being updated and then verified.


1 Like