Community discussions

MikroTik App
 
m4rk
newbie
Topic Author
Posts: 30
Joined: Fri Dec 15, 2017 8:02 pm

Redirect request by source IP in a scenario with Server Microsoft (DC)

Thu Oct 25, 2018 2:12 pm

Hi all,

I've a network with one Domain Controller (Server Microsoft) and some PCs under domain.
I've to create some NAT rules in Mikrotik to redirect all DNS requests (on port 53) to different Public IPs (and ports) based on the source IP that started the request.

The problem is that all PCs use the IP of DC as only DNS so all DNS requests are sent to the DC and then to Mikrotik.
In this way all them have the same source IP (the Server Microsoft Private IP) and I can't see the PCs IP that started the request.

There is a method to redirect DNS requests, based on the PCs that sent the request, in a scenario with DC Server?

Thanks a lot and have a good day,

Marco
 
Kindis
Member
Member
Posts: 434
Joined: Tue Nov 01, 2011 6:54 pm
Location: Sweden

Re: Redirect request by source IP in a scenario with Server Microsoft (DC)

Thu Oct 25, 2018 4:18 pm

No you cannot do that as far as I know on a DC. In this case your best bet is to add a other DNS server that can perform what you want and redirect all clients to this DNS. Make sure DNS for the domain works aswell. Maby a tiny Linux server with BIND could allow you to do what you want?
You also get the benefit of not having to solve things in the network layer that should be solved on server or client layer.
 
User avatar
karlisi
Member
Member
Posts: 439
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: Redirect request by source IP in a scenario with Server Microsoft (DC)

Thu Oct 25, 2018 4:39 pm

For domain-joined workstations it is mandatory to have AD aware DNS servers configured. If You will configure DNS server on them, which knows nothing about AD, it will break domain authentication.
 
m4rk
newbie
Topic Author
Posts: 30
Joined: Fri Dec 15, 2017 8:02 pm

Re: Redirect request by source IP in a scenario with Server Microsoft (DC)

Thu Oct 25, 2018 6:08 pm

Hello,
In the meanwhile thanks a lot for your quick answers.

Unfortunately I can't add or change anything in the network and, as you correctly said, I can't change the DNS of the internal devices because they need to resolve internal names such as the DC name.

I thought there was a method to see the original source in the Mikrotik.

Thanks again for your support and have a good day,

Marco

Who is online

Users browsing this forum: Ahrefs [Bot], Majestic-12 [Bot] and 102 guests