Community discussions

MikroTik App
 
thermant
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Different DNSs for different subnets?

Fri Feb 26, 2010 3:50 am

Hi all,

I have 4 active interfaces on my RoS, 2 going to the net and 2 going to local networks. Can someone tell me if it's possible to set different DNSs for each of the local networks? Say, LOCAL1 will use OpenDNS's addresses, and LOCAL2 will use the ISP's addresses?

If so, would you mind telling me how? I can't find anything on this in the manual.

Thanks all.

-Z-
 
yancho
Member Candidate
Member Candidate
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Re: Different DNSs for different subnets?

Fri Feb 26, 2010 10:14 am

Why not? If you are using static addressing set whatever DNS you prefer on a client PC. Using DHCP? Again not a problem. create 2 different DHCP server setups.
 
thermant
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Different DNSs for different subnets?

Sat Feb 27, 2010 9:19 am

Oh?
So even though the router has its own DNS, I can still set a different DNS for the clients? But I set the router as a DNS proxy, so DNS requests would be redirected to the router itself (port 53). Will it still work, you think?

I am unable to try it at the moment, I'm nowhere near the router. If I can get to my router sooner than your reply, I'll give it a try.

Thanks for answering.

-Z-
 
User avatar
roc-noc.com
Forum Veteran
Forum Veteran
Posts: 874
Joined: Sun Dec 02, 2007 3:27 am
Location: Rockford, IL USA
Contact:

Re: Different DNSs for different subnets?

Sun Feb 28, 2010 1:10 am

Oh?
So even though the router has its own DNS, I can still set a different DNS for the clients? But I set the router as a DNS proxy, so DNS requests would be redirected to the router itself (port 53). Will it still work, you think?

I am unable to try it at the moment, I'm nowhere near the router. If I can get to my router sooner than your reply, I'll give it a try.

Thanks for answering.

-Z-
Yes, any computer can use any DNS as long as they are not blocked by a firewall. So when you set a dns server for the router, that is only for the router. If you set the router up to proxy or relay the dns to one of your LANs, then they will use the router's DNS. Or you can leave that out and set up a dhcp server for each network and tell them through DHCP what DNS servers to use. But that still doesn't not force them to use your DNS. They could set up a static DNS record to any DNS server on the Internet that allows public access unless you block their outside DNS access in your firewall.

Tom

Who is online

Users browsing this forum: No registered users and 26 guests