how to route FQDN to an alt ip?

Evuraan evuraan at gmail.com
Thu Aug 13 20:28:44 UTC 2009


I believe i've figured this out. this below seems to take care of this
situation using iptables instead of dnsmasq:

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A  OUTPUT -p tcp -d A.B.C.D --dport 80 -j DNAT
--to-destination E.F.G.H

for logging,

iptables -A OUTPUT -j LOG --log-prefix "iptables" --log-level=info -d E.F.G.H

>
> I've never figured out a way to reroute IP addresses that doesn't use DNS.
> --
> derek
>

thank you all for your responses and time..!




More information about the ubuntu-users mailing list