Community discussions

MikroTik App
 
relam
just joined
Topic Author
Posts: 8
Joined: Thu Nov 07, 2013 1:48 pm

Static DNS entries

Mon Nov 11, 2013 6:34 pm

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!
 
SoroushSoltani
just joined
Posts: 8
Joined: Sat Nov 09, 2013 6:34 pm

Re: Static DNS entries

Tue Nov 12, 2013 11:27 pm

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 .
 
relam
just joined
Topic Author
Posts: 8
Joined: Thu Nov 07, 2013 1:48 pm

Re: Static DNS entries

Tue Nov 19, 2013 2:40 pm

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!