N
N
Nikita Sizov2016-02-25 14:43:29
Domain Name System
Nikita Sizov, 2016-02-25 14:43:29

How to resolve different DNS names through different servers?

Hi all! Need ideas.
There is a home network without AD and servers, it has a Mikrotik router. The network is connected by VPN tunnels to several other independent networks, each with an Active Directory domain and a bunch of hosts.
Let's say network A has the rabota1.by domain and network B has the rabota2.by domain.
I want the addresses *.rabota1.by to be resolved on the DNS server pdc.rabota1.by, *.rabota2.by on pdc.rabota2.by, and all the rest - on the DNS servers of my provider. How to do it?
So far, I have the following options:
- create my own domain, to which to connect other necessary domains;
- put some Kerio with DNS-forwarding function. She would have solved the issue, but there is no such thing in Mikrotik.
Both of these options do not suit me, because I need some kind of server, a virtual machine, in general, additional entities. I want to solve this issue with the help of existing devices.
There is:
- a laptop with Windows (you need to allow these names only on it)
- a Mikrotik router

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Saboteur, 2016-02-25
@sizaik

You can put your own DNS server in which you can configure which zones will be resolved by which external DNS servers.
And on your laptop, respectively, write it as a DNS server.
Whether Mikrotik can do this - I will not tell you.
If you don’t have computers that are always on, on which you can raise a DNS server, then it’s possible to edit about hosts with a simple bicycle .. you can write a thousand lines into it

N
Nikita Sizov, 2016-02-25
@sizaik

I found it myself. Mikrotik is good.
forum.mikrotik.com/viewtopic.php?t=48607
Via /ip firewall layer7-protocol, which can search for regular expressions inside the packet. It can be inserted as a condition in nat, then it's a matter of technology.
Thank you all for your support, I'm removing the question.

C
Cool Admin, 2016-02-25
@ifaustrue

Mikrotik can't do that. You will have to raise an adult DNS - BIND \ MS or use static records.

M
mureevms, 2016-02-25
@mureevms

In this case, it will be easier to use the DNS suffix option (analogue in Linux is the search parameter). Enter the domains rabota1.by first and rabota2.by the second. The system will resolve short names, substituting the DNS suffix for them in order of priority until it finds it, if the host exists, of course. For example, in network B there is a host1.rabota2.by, when host1 pings, the system will first substitute host1.rabota1.by, will not find it, and then substitute host1.rabota2.by. The only cant is the same names of machines in different domains. In this case, it will always be given from rabota1.by.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question