Answer the question
In order to leave comments, you need to log in
When using dnsmasq, the l7 protocol rule does not work in Mikrotik?
There is a Mikrotik RD3011UiAS router and several clients (android windows linux) for which it is a gateway and dns.
The router is a VPN client for private networks, and to implement custom domain forwarding, a rule based on the l7 protocol (regexp simple domain1.ru|domain2.ru ) was made, which redirects DNS queries of two domain names to another DNS server.
On windows and android everything works fine .. the necessary names are resolved, but on ubuntu which forces dnsmasq to use this does not work :(
nslookup zabbix.domain.ru
Server: 127.0.1.1
Address: 127.0.1.1#53
** server can't find zabbix.domain.ru: NXDOMAIN
nslookup zabbix.domain.ru192.168.100.10
Server: 192.168.100.10
Address: 192.168.100.10#53
Name: zabbix.domain.ru
Address: 172.16.11.21
Answer the question
In order to leave comments, you need to log in
If I understand correctly, then in dnsmasq specify the name resolution for your domain.
Specify dnsmasq that behind the domain1.ru domain you need to crawl to the DNS mikrotik.
server=/yourdomain.ru/ip_your_mikrotik
Again, if I understand you correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question