*BSD News Article 26099


Return to BSD News archive

Xref: sserve comp.unix.bsd:13276 comp.protocols.tcp-ip:27004
Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip
Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!basser.cs.su.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!sol.ctr.columbia.edu!howland.reston.ans.net!torn!nott!cunews!revcan!micor!latour!mcr
From: mcr@Sandelman.OCUnix.on.ca (Michael Richardson)
Subject: Re: virtual hosts based on ip address?
Message-ID: <1994Jan16.010036.5421@Sandelman.OCUnix.on.ca>
Organization: Sandelman Software Works, Debugging Department, Ottawa, ON
References: <2eptfr$1lr@zip.eecs.umich.edu> <mark.756184608@labtam> <2etup7$8jr@zip.eecs.umich.edu>
Date: Sun, 16 Jan 1994 01:00:36 GMT
Lines: 25

In article <2etup7$8jr@zip.eecs.umich.edu> zeeff@zip.eecs.umich.edu (John Zeeff) writes:
>>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.
>
>This sounds like a job for a tcp wrapper type program (ie, inetd runs this
>program and it spawns the right process).  Does anyone have one?
>

  If you *do* have two network interfaces, (or can fake it via proxy
ARP and another loopback device), then you *can* bind to a specific
address. Usually one binds the socket you are going to listen on to
INADDR_ANY, but you can, bind it to a specific address as well.
  You'll have to write a modified inetd, or modify gopherd itself.
  
  Why not just use CNAMEs, and different port numbers?


 

-- 
   :!mcr!:            |  "Elegant and extremely rapid for calculation are the 
   Michael Richardson | techniques of Young tableaux. They also have the merit
 mcr@ccs.carleton.ca /of being fun to play with." - p.47 Intro to Quarks&Partons
 mcr@sandelman.ocunix.on.ca / +1 613 729-5409 / +1 613 788-2600 3853 (work)