bugs for cname can not be working properly with bind 9.11.4
Hello ,
I have run the dns server by myself which installed centos7 and bind version is BIND 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 (Extended Support Version) ,the domain name is kaixinduole.com
I just create a cname record for tesing ,which is www cname to www.baidu.com. please see the below :
[root@bind-master-centos7 named]# cat kaixinduole.com.zone
$TTL 1D
@ IN SOA ns1.kaixinduole.com. shawn.kaixinduole.com. (
202204276
1H
15M
1W
1D )
IN NS ns1.kaixinduole.com.
IN NS ns2.kaixinduole.com.
IN MX 10 mx1
IN MX 20 mx2
IN A 22.3.3.95
ns1 IN A 52.130.145.30
ns2 IN A 139.217.99.188
mx1 IN A 2.1.1.7
mx2 IN A 2.1.1.7
mx3 IN A 2.1.1.7
subversion IN A 139.219.5.165
http IN A 100.2.2.8
www IN CNAME www.baidu.com.
mail IN NS ns1.mail
harbor IN A 40.73.22.32
mail IN NS ns2.mail
ns1.mail IN A 139.217.98.3
ns2.mail IN A 139.217.98.3
file IN NS ns1.file
file IN NS ns2.file
ns1.file IN A 139.217.98.3
ns2.file IN A 139.217.98.3
file IN A 52.131.78.18
@ IN TXT "v=spf1 a ip4:184.164.141.188 ~all"
@ IN TXT "YOU CAN CONTACT ME BY PHONE 15810410643"
actually this cname record just does work properly ,the other rest of record are woring normally .
my testing below:
[root@centos7 ~]# dig harbor.kaixinduole.com
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> harbor.kaixinduole.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33479
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;harbor.kaixinduole.com. IN A
;; ANSWER SECTION:
harbor.kaixinduole.com. 21600 IN A 40.73.22.32
;; Query time: 439 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May 24 13:07:51 CST 2022
;; MSG SIZE rcvd: 67
[root@centos7 ~]# dig subversion.kaixinduole.com
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> subversion.kaixinduole.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29175
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;subversion.kaixinduole.com. IN A
;; ANSWER SECTION:
subversion.kaixinduole.com. 21600 IN A 139.219.5.165
;; Query time: 323 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May 24 13:08:07 CST 2022
;; MSG SIZE rcvd: 71
[root@centos7 ~]# dig www.kaixinduole.com # it should be cname to www.baidu.com .but it actully respond with 1.1.1.1
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.9 <<>> www.kaixinduole.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46971
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.kaixinduole.com. IN A
;; ANSWER SECTION:
www.kaixinduole.com. 21600 IN A 1.1.1.1
;; Query time: 351 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue May 24 13:08:23 CST 2022
;; MSG SIZE rcvd: 64
[root@centos7 ~]#
it should be cname to www.baidu.com .but it actully respond with 1.1.1.1 ,1.1.1.1 was the previous configuration . is there any clue forthis issues ?thanks