M
M
Maksim2017-09-22 19:01:37
Domain Name System
Maksim, 2017-09-22 19:01:37

Mikrotik, automatic assignment of different DNS servers?

Good,
how to implement on Mikrotik the assignment of different DNS servers within the same network?
Example:
Two computers in the same network, one DNS 8.8.8.8, the second DNS 127.127.127.127

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artur L, 2017-09-24
@chumayu

In the DHCP server section, create the option
/ip dhcp-server option
add code=6 name=Local value="'127.127.127.127'"
add code=6 name=Google value="'8.8.8.8'"
Create a static license for the desired host . For each host, DHCP options must be specified.
If you need to issue several different DNS (usually the main + reserve). Then you create several options for each DNS separately. Add them to the options set to the desired "set".
In static lease, instead of DHCP options, select the DHCP Oprions Set set you need.

S
Sergey, 2017-09-22
@LiS-31

Give an example why you need it?
It is not possible to do this by standard means, it is assumed that all DNS return the same values ​​and there are no differences between them.
The maximum that can be done is to create 2 DHCP POOLs and separate them by interfaces, or vlan.

S
satoo, 2017-09-22
@satoo

If you do not go into details, why the author needs it, then you can

  • Issue the same dns-servers, but in nat on the analysis of the source, transfer to the desired server
  • Didn't find what you were looking for?

    Ask your question

    Ask a Question

    731 491 924 answers to any question