Community discussions

MikroTik App
 
User avatar
TheKoder
just joined
Topic Author
Posts: 1
Joined: Fri Nov 17, 2023 11:57 am

Using router as DNS server for two subnets

Tue Feb 27, 2024 5:43 pm

Hi all,
I'm using a roterboard with two WANS and two bridges. Each bridge is configured to bo connected to one of the WANS, so that bridge A (with local IP 10.1.50.1) is connected to WAN 1 and bridge B (with local IP 10.1.60.1) is connected to WAN 2.
Everything works fine, clients connected to the LAN A (10.1.50.0/24) are connected to internet through WAN 1, and so for LAN B (10.1.60.0/24) and WAN 2.
The point are the DNS servers. At the moment, the two DHCP servers of the two bridges are configured to give 8.8.8.8 and 208.67.222.222 as DHCP servers.
I would like to have the clients of the LAN A refer to a DNS like 10.1.50.1 and the clients of the LAN B 10.1.60.1, using the routerboard to manage the DNS so that I can use static DNS entries to address different manchines on the two LAN.
It is possible with just one router?
Thank you!
Denis
 
F1Geir
just joined
Posts: 7
Joined: Sat Mar 04, 2023 3:27 pm

Re: Using router as DNS server for two subnets

Tue Feb 27, 2024 6:30 pm

Yes, it is possible.
Remember to configure external DNS servers and select "allow remote requests" under the IP-DNS page
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: Using router as DNS server for two subnets

Tue Feb 27, 2024 6:42 pm

I think you can dst-nat port 53 (if the DNS server is an external device, let's say a pi-hole) or redirect if the Mikrotik device itself is used.

Check:
viewtopic.php?t=159291
and:
viewtopic.php?f=2&t=174873

You might need additionally to masquerade/src-nat, depending on your configuration, see also:
viewtopic.php?t=189578

Read also this current thread here:
viewtopic.php?t=204996
which is seemingly very similar.

Who is online

Users browsing this forum: qatar2022 and 8 guests