split dns

Can’t make routeros 7.16 forward dns requests according to regexp

/ip address
add address=192.168.10.1/24 interface=bridge network=192.168.10.0
/ip dhcp-server network
add address=192.168.10.0/24 comment=defconf dns-server=192.168.10.1
    gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip dns static
add forward-to=192.168.5.6 regexp="*\\.example\\.local\$" type=FWD



[admin@MikroTik] > ping 192.168.5.6
  SEQ HOST                                     SIZE TTL TIME       STATUS            
    0 192.168.5.6                                56 127 51ms866us 
    1 192.168.5.6                                56 127 51ms826us 
    2 192.168.5.6                                56 127 51ms709us

DNS server

PS C:\Users\admin> ipconfig
Адаптер Ethernet Ethernet0:

   DNS-суффикс подключения . . . . . :
   IPv4-адрес. . . . . . . . . . . . : 192.168.5.6
   Маска подсети . . . . . . . . . . : 255.255.255.0
   Основной шлюз. . . . . . . . . : 192.168.5.1
PS C:\Users\admin> nslookup test.example.local
╤хЁтхЁ:  localhost
Address:  127.0.0.1

╚ь :     test.example.local
Address:  192.168.5.10

mikrotic’s client

 nslookup
> test.example.local
Server:		192.168.10.1
Address:	192.168.10.1#53

** server can't find test.example.local: NXDOMAIN

DNS server 192.168.5.6 works fine without regexp, so it is OK and fully accessible

/ip dns static add forward-to=192.168.5.6 name="example.local" type=FWD match-subdomain=yes

Not working too

regexp=“.*\.example\.local” type=FWD works now