This works:
Router:
Code: Select all
/ip dns static> /ip dns static print detail where comment="T E S T"
Flags: D - dynamic, X - disabled
0 ;;; T E S T
name="git.home" type=CNAME cname="vm.home" ttl=1d
Code: Select all
$ host git.home
git.home is an alias for vm.home.
vm.home is an alias for vm.server.home.
vm.server.home has address 10.7.30.7
This does not work:
Router:
Code: Select all
/ip dns static> /ip dns static print detail where comment="T E S T"
Flags: D - dynamic, X - disabled
0 ;;; T E S T
regexp="git\.home" type=CNAME cname="vm.home" ttl=1d
Code: Select all
$ host git.home
Host git.home not found: 3(NXDOMAIN)
Code: Select all
$ drill git.home @router.home
;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 62729
;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; git.home. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 0 msec
;; SERVER: 10.9.8.7
;; WHEN: Sun Jul 25 12:29:30 2021
;; MSG SIZE rcvd: 26
Code: Select all
$ drill CNAME git.home @router.home
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 53056
;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2
;; QUESTION SECTION:
;; git.home. IN CNAME
;; ANSWER SECTION:
git.home. 86400 IN CNAME vm.home.
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
vm.home. 86400 IN CNAME vm.server.home.
vm.server.home. 86400 IN A 10.7.30.7
;; Query time: 0 msec
;; SERVER: 10.9.8.7
;; WHEN: Sun Jul 25 12:29:34 2021
;; MSG SIZE rcvd: 83