Hi,
> iptables is suppose to handle the -d <hostname>
>
> (host is 10.0.0.160)
>
> -A PREROUTING -p tcp -m tcp -d test.example.com -j DNAT --to-destination
> 10.0.1.2
>
> ... what's wrong with my approach, I didn't succeed to make it work.
iptables does only support IP based routing. I guess, the -d <hostname> switch
is only provided for convenience but will simply resolve the hostname to the
appropriate IP.
I don't think domainname based routing is available at all...
Cheers,
Sebastian
-- Sebastian "tokkee" Harl GnuPG-ID: 0x8501C7FC http://tokkee.org/
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver