I have an Active Directory Server located in 192.168.100.250 with domain name xyz.com, the problem is the domain xyz.com is already registered at public domain by someone out there, so if i ping to xyz.com it resolving to the public domain not my local AD Server. Is there any way to redirect the dns traffic ?, so if i ping to my AD Server domain name it will resolving to my local IP 192.168.100.250. Thanks in advance
My home MikroTik runs a permanent tunnel to our offices. DHCP configures devices to send DNS requests to the MikroTik which then either proxies the requests to Google or forwards it to our AD server.
You probably don’t need the second NAT rule. It would originate packets to the AD server as coming from the MikroTik to ensure return traffic gets unnatted properly before arriving back at the initiator.
A dst-nat rule should do this week enough. If you match against anything destined TCP/UDP 53 and just dst-nat it to your server you can rule all dns through it.
Have you specified it on the DHCP server as well or is the MT not doing that?
Dear community, first of all thanks for the answer, but none of them work as my needs.
i’ve tried static DNS, wether using regexp or name. It does resolving to my server when i ping to it’s domain name, but seems like if i ping to host.xyz.com it doesn’t resolve to the host IP address, i think it’s becaus the static DNS only resolving to the AD Server
i’ve tried the two method up there two, but it seems not working. My mikrotik and my host computer still resolving to the public host when ping to xyz.com
but thank’s anyway, i appreciate your help
That’s a misinterpretation. It doesn’t need at least 2k of data or 10 packets but it takes up to 2k of data or 10 packets.
DNS requests are small enough to fit into these margins.
Working great over here with about 10 satellite offices.
For CPUs sake it’s important to narrow L7 down to only the packets really needed (look at the dst-nat matcher).
i’ve trief all of solution from above, but it seems none of them works. The closest things is i can only ping to my AD server and resolve it as local IP.
But thanks anyway to the community, any further help will be appreciated
best regards,
Sam