Answer the question
In order to leave comments, you need to log in
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
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question