how to route FQDN to an alt ip?

Chris Mohler cr33dog at gmail.com
Thu Aug 13 05:47:38 UTC 2009


On Wed, Aug 12, 2009 at 10:15 PM, Evuraan<evuraan at gmail.com> wrote:
> I've an annoying problem where i need to define a custom IP to route to.
>
> host blah.example.com has two ip addresses, A.B.C.D and E.F.G.H - I cannot
> get to the 1st IP, but  I can get OK to the 2nd IP.
>
> What's the best way to add an ip route statement so that any outbound
> traffic to blah.example.com will go to E.F.G.H?

Can you not just put:
blah.example.com E.F.G.H
in /etc/hosts?

Chris




More information about the ubuntu-users mailing list