Express guide how to to create proper NAT rule (port forwaring) for external and internal network on MikroTik (so called Hairpin NAT).
How to make one static DNS record for single domain with subdomains on MikroTik 6.37.X:
/ip dns static
add address=192.168.1.243 regexp=.*example1.com
add address=192.168.1.245 regexp=.*example2.com
You have single public IP address 188.8.131.52 and 2 internal web servers hidden behind public IP address:
- www.example1.com – 192.168.1.243
- www.example2.com – 192.168.1.245
And you would like to forward traffic to each of the web server at the WAN side. RouterOS and his Web Proxy package allows this for HTTP traffic (not HTTPS).