How to redirect (sub)domain to ip and port

uhttp (cgi redirector) can handle host portion nicely see;

one way to handle (wildcard) dns...;

dhcp.@dnsmasq[0].address='/router/10.2.3.1'

kind of a long way around doing (non-local-pages) things tho' unless your websites come and go frequently...