*BSD News Article 25034


Return to BSD News archive

Xref: sserve comp.unix.bsd:13085 comp.protocols.tcp-ip:26545
Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip
Path: sserve!newshost.anu.edu.au!munnari.oz.au!labtam!labtam!mark
From: mark@labtam.labtam.oz.au (Mark Treacy)
Subject: Re: virtual hosts based on ip address?
Organization: Labtam Australia Pty. Ltd., Melbourne, Australia
Date: Sat, 18 Dec 1993 03:16:48 GMT
Message-ID: <mark.756184608@labtam>
References: <2eptfr$1lr@zip.eecs.umich.edu>
Lines: 21

zeeff@zip.eecs.umich.edu (John Zeeff) writes:
>I'd like to take one physical machine (running bsdi) and make it look like
>two different machines to the outside world.  In particular, I'd like
>people to be able to do things like "gopher machine1.org" and "gopher
>machine2.com" and get different menus (I don't want to use non standard 
>port numbers for this).  So ideally the one machine would have two ip
>addresses and inetd would detect which one was being used and spawn the 
>appropriate gopherd.
The one physical machine can have multiple ip interfaces, be they slip,
ppp, ethernet or whatever.  You typically give each a different address.
You can then name them in the dns (named, bind).
If you only have one network interface, you can assign multiple addresses
to that one interface, e.g.

	ifconfig if0 alias cc.dd.ee.ff

Inetd would however need to be changed if you wanted
to offer different services depending on address used.
You may prefer to change gopherd instead.

 - Mark.