Newbie here to RouterOS. Am finding it challenging to work my way through the layers of menuing in RouterOS on this RB4011.
I need to setup a redirect to a local server on the lan when a lan user tries to access a specific subdomain. eg user accesses mylocal.green.com (for office lan users) and is directed to the server on the lan at 192.168.5.40 vs remote.green.com (the published url for external users inbound on the WAN interface).
I believe this is called a split horizon lookup?
Any tips / KB articles on how to do this in Winbox? I’m not at all versed on command line, so a graphical UI may be best. I need to be able to reverse it quickly if it goes sideways.
so, where did you host this dns server? on the internet or locally hosted? did you have a dedicated dns server for this domain or you want to make routeros to host your domain?
if this domain is actually hosted on the internet, you can dstnat that domain for local lan user directly to the target server.
/ip firewall nat
if it is locally hosted on MT - you might want to read this guide
The domain is hosted by a third-party developer using DNS they control. They are currently redirecting in-office lan users to a local lan IP via their DNS (nslookup for green.com resolves to 192.168.5.40) - which they’ve advised is not the best practices setup. They’ve requested I look at dealing with requests for the site coming from the lan be redirected by the Mikrotik RouterOS itself - to send those requests to the server on the lan at 192.168.5.40.
I understand the concept fine - in older days, we’d edit a users local hosts file to accomplish the same thing.
What I’m after in RouterOS is a clearly laid out and easily reversible process should I mess it up.