Что касается регулярных выражений с CNAME: сломано ли это или я что-то делаю не так? Вот что работает:
Router: /ip dns static> /ip dns static print detail where comment="T E S T"
Flags: D - динамический, X - отключен
0 ;;; T E S T
name="git.home" type=CNAME cname="vm.home" ttl=1d
Консоль: $ host git.home
git.home — это псевдоним для vm.home.
vm.home — псевдоним для vm.server.home.
vm.server.home имеет адрес 10.7.30.7
А вот что не работает:
Router: /ip dns static> /ip dns static print detail where comment="T E S T"
Flags: D - динамический, X - отключен
0 ;;; T E S T
regexp="git\.home" type=CNAME cname="vm.home" ttl=1d
Консоль: $ host git.home
Host git.home not found: 3(NXDOMAIN)
Консоль: $ 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
Консоль: $ 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
Router: /ip dns static> /ip dns static print detail where comment="T E S T"
Flags: D - динамический, X - отключен
0 ;;; T E S T
name="git.home" type=CNAME cname="vm.home" ttl=1d
Консоль: $ host git.home
git.home — это псевдоним для vm.home.
vm.home — псевдоним для vm.server.home.
vm.server.home имеет адрес 10.7.30.7
А вот что не работает:
Router: /ip dns static> /ip dns static print detail where comment="T E S T"
Flags: D - динамический, X - отключен
0 ;;; T E S T
regexp="git\.home" type=CNAME cname="vm.home" ttl=1d
Консоль: $ host git.home
Host git.home not found: 3(NXDOMAIN)
Консоль: $ 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
Консоль: $ 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
