不,CNAME不會隱藏任何內容。你可以運行一個dig WWW.A.COM
,它會顯示你的CNAME指針。也就是說,瀏覽您的網站的休閒用戶永遠不會看到或知道您的網站指向C.COM
。
例子:
$ dig ak.nextag.com
; <<>> DiG 9.8.3-P1 <<>> ak.nextag.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9813
;; flags: qr rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;ak.nextag.com. IN A
;; ANSWER SECTION:
ak.nextag.com. 879 IN CNAME img.nextag.com.
img.nextag.com. 86379 IN CNAME img05.static-nextag.com.
img05.static-nextag.com. 7179 IN CNAME d2lhs8hfggtuez.cloudfront.net.
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.195
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.200
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.186
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.218
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.251
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.132
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.42
d2lhs8hfggtuez.cloudfront.net. 39 IN A 54.230.143.7
;; Query time: 106 msec
;; SERVER: 10.100.51.31#53(10.100.51.31)
;; WHEN: Sat Jul 8 01:18:44 2017
;; MSG SIZE rcvd: 254
您可能正在運行到CloudFlare的CNAME壓扁,如果你創建了所有CNAMES對區域的根。 https://support.cloudflare.com/hc/en-us/articles/200169056-CNAME-Flattening-RFC-compliant-support-for-CNAME-at-the-root –