Loopback Aliases: 127.*

Jim Dennis (jimd@starshine.org)
Wed, 15 Apr 1998 18:49:50 -0700


All,

This is going to sound like a silly question but please bear with
me.

At my suggestion my wife, Heather, configured one of our Apache
servers to virtual host on several addresses in the 127.0.0.x range.
On our LAN we configure all the systems to use a squid proxy at
betelgeuse.starshine.org (disconnected system don't bother trying to
see it). All of these virtual hosts are on betel (our short name for
it).

We don't use DNS internally here -- we just distribute /etc/hosts
files (only about 5 systems on the LAN).

It works fine. We have a list of hosts entries that are unique to
betel which list all of the virtual hosts (staging areas and
mirrors for some web servers that we maintain out on the Internet).

So we see them all because we're going throgh the squid cache and it
is running on the same host and hence can resolve the names.

The odd thing is that she didn't add any "subinterfaces" or "IP aliases"
to betel's configuration. I would have expected that she'd have to
use commands like 'ifconfig lo:1 127.0.0.2 up' to make this work. However,
she didn't.

Is this a feature of the 'lo' interface/driver? If so, that's nice.
If it's a bug and will be fixed, I have to know so I can "fix" my
configuration before I forget.

This is on a 2.0.33 kernel.

BTW: I plan on writing this trick up as a HOW-TO for web authors,
or maybe as a Linux Gazette article. The next step is to develop
clean, portable, 'makefiles' and kermit/shell scripts for "publishing"
these snapshots out to the production servers. Part of the idea is
to use 'wget' to retrieve the snapshot (this removes "dead files"
-- that is, those with no link/references) and lynx -traversal to
detect dead links and general "sitemaps" or "contents" pages and
diff -r, rdist, or tar -d to find only the minimal changes between
snapshots.

None of that relates to LKern --- but any suggestions sent via
private e-mail will be appreciated.

--
Jim Dennis  (800) 938-4078		consulting@starshine.org
Proprietor, Starshine Technical Services:  http://www.starshine.org
        PGP  1024/2ABF03B1 Jim Dennis <jim@starshine.org>
        Key fingerprint =  2524E3FEF0922A84  A27BDEDB38EBB95A 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu