NAT destination based on DNS?
-
Hi. Say I have a pair of DNS entries, say example1.domain.com and example2.domain.com. Both point to the same IP, but internally I need example1 to go to machine1 to serve HTTPS content and example2 to go to machine2 for the same. I normally just setup a NAT rule for port 80 to go to the machine, but in this case I have two destinations that use the same port.
Is there any way for it to look at the host that was used and route based on that? Like host headers on a web server for example. I looked at source options but I didn't see anything that sounded like it'd be what I need.
Thanks!
-
HAproxy will do that.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.