Map non-127.x.x.x address back to own machine?
James Knott
james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Wed Sep 14 10:11:30 UTC 2011
Amanda Yilmaz wrote:
> Hi all,
>
> Is there a way to make an IP address outside the 127.x.x.x range (say, 192.168.56.101) map back to your own machine when accessed from your own machine, as if it were another alias for localhost? I'd like this to happen only on my own machine, and not interfere with anyone else's use of said IP address on the local network. This is for testing purposes only.
>
> I've been poring over the documentation for route, arp, tun/tap, etc., but don't have a deep enough understanding of Linux networking to know where to begin.
>
> Thanks,
> Amanda
> --
> The Toronto Linux Users Group. Meetings: http://gtalug.org/
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
>
If you access the other computer with a host name rather than IP
address, then just add it to your /etc/hosts file. Normally, the hosts
file is checked before going to a DNS server.
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list