M
M
mikes2017-07-22 20:59:08
Domain Name System
mikes, 2017-07-22 20:59:08

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

although wireshark shows that requests eventually go to the gateway ip .. because it is distributed via dhcp
, but at the same time, if you do
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

everything works, in wireshark, to be honest, I didn’t see the difference between the packets .. but the rule works on mikrotik.
What can be done in such a situation? don't want to remove dnsmasq and network manager from ubuntu

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Zhurkin, 2017-07-22
@icCE

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 question

Ask a Question

731 491 924 answers to any question