Adding www. subdomain to GithubPages

I want www.username.imtqy.com redirected to username.imtqy.com .

I read the documentation and created a CNAME file to go to www.username.imtqy.com, but it does not work. (username.imtqy.com works)

I ran the dig command to check the status (as indicated in the documentation) and it returns the simlar result for both users: www.username.imtqy.com (doesn't work) and username.imtqy.com (working)

➜  ~  dig username.github.io  
; <<>> DiG 9.8.3-P1 <<>> username.github.io.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2627
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;username.github.io.        IN  A

;; ANSWER SECTION:
username.github.io. 600 IN  CNAME   github.map.fastly.net.
github.map.fastly.net.  15  IN  A   185.31.18.133

And for www.usernam.imtqy.com

➜  ~  dig www.username.github.io                        

; <<>> DiG 9.8.3-P1 <<>> www.username.github.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31996
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.username.github.io.    IN  A

;; ANSWER SECTION:
www.username.github.io. 600 IN  CNAME   github.map.fastly.net.
github.map.fastly.net.  19  IN  A   185.31.18.133

The difference I noticed is www.username.imtqy.com is returning

github.map.fastly.net.  19

But I do not know what that means.

Any help would be greatly appreciated!

+4
source share
1

GitHub docs , ( www ) GitHub. imtqy.com GitHub, , - . GitHub, , www.username.imtqy.com ( URL- 404), URL- CNAME.

.

dig 19 , 15 - TTL Time To Live. , , .

+1
source

Source: https://habr.com/ru/post/1618582/


All Articles