Page 1 of 1

Static DNS entries

Posted: Mon Nov 11, 2013 6:34 pm
by relam
Hi,

I want to associate a static DNS entry to an interface or a pool of address or something similar: if I'm connected to ethernet 5, I want mikrotik to resolve example.com to 192.168.5.1, but if I'm connected in ethernet 4, I want mikrotik to resolve example.com to 192.168.4.1

Does anyone know how could I do this?

Thank you!

Re: Static DNS entries

Posted: Tue Nov 12, 2013 11:27 pm
by SoroushSoltani
If you setup DNS Static, this will accessible from all ethernets .
If you need to do this, you can run 2 DNS Server, then Configure your eth4, eth5, then redirect DNS port from eth4 target subnet to DNS Server #1 and redirect DNS Port from eth5 target subnet to DNS Server #2 .

Then configure DNS Server #1 and #2 for Static DNS .

Another way,
you can run MetaRouter and assign Ethernet you want to the MetaRouter and then config DNS Static at the MetaRouter .

Re: Static DNS entries

Posted: Tue Nov 19, 2013 2:40 pm
by relam
Thanks for your reply!

I have been investigating in these two methods and I'm interested in the first one. I understand almost what you are saying, but when you say 'run 2 DNS servers', I don't know how to do it. ¿Is it possible to run different DNS servers inside mikrotik? or do you mean external DNS servers?

Moreover, I have found another way I think that could be a good solution: Conditional forwarding. What do you think about this?

Thanks!