Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!gatech!swrinde!sgigate.sgi.com!news1.best.com!haggis From: haggis@netcom.com (John R. Haggis) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: WWW domain-name aliases on a single machine (Bind)? Date: Tue, 11 Jul 95 16:00:59 GMT Organization: Central Intelligence Corporation Lines: 63 Message-ID: <3tu7a4$i66@news1.best.com> References: <3tkhtd$6mk@news1.best.com> <3tp0t9$123@ionews.io.org> NNTP-Posting-Host: haggis.vip.best.com X-Newsreader: News Xpress Version 1.0 Beta #4 In article <3tp0t9$123@ionews.io.org>, taob@io.org (Brian Tao) wrote: >In article <3tkhtd$6mk@news1.best.com>, John R. Haggis <haggis@netcom.com> wrote: >> >>I'm looking for an OS to set up a Web server. I need to set up multiple >>domain names to link to web pages without subdirectory path designations, >>e.g.: >> http://www.userdomain.com/ >> >>NOT: >> http://www.topdomain.com/~user >> >>I heard that on Linux, you couldn't do this... Something about the version >>of "bind" that ran on it. > > You *can* do it under Linux, but it's rather messy and requires >patches galore and replacement binaries. > >>I heard that on BSDI, you CAN do it the way I >>want, but that's too expensive for me right now. >> >>Is it possible on freeBSD? > > It can be done the same way on FreeBSD as on BSD/OS. In my case, >my Web server is in a C-class domain, and I want to assign multiple >IP's to a single network interface (an NE2000 card, device ed1): > >ifconfig ed1 inet 140.109.40.248 netmask 0xffffff00 >ifconfig ed1 inet 140.109.40.249 netmask 0xffffffff alias >ifconfig ed1 inet 140.109.40.250 netmask 0xffffffff alias >ifconfig ed1 inet 140.109.40.251 netmask 0xffffffff alias >ifconfig ed1 inet 140.109.40.252 netmask 0xffffffff alias >[etc..] note ---^^ > > That's it. The machine will now answer to 5 IP addresses. Now >you need an HTTP server that can bind to a port at an individual >address. The Apache server will do this, and works quite nicely with >FreeBSD. See http://www.apache.org/ . Thank you, Brian. I'll check into this. Of course, it means I have to use up an IP address for each Web address I support... Can it be done with dummy (anonymous subnet) addresses? Or does it have to be in the actual subnet of the domain of the server machine? You see, I'm going to have one server machine on the T1, some machines on a small local subnet, and lots of Web clients (but no dialin service). I'll have a subnet of addresses to play with but would rather not be limited by having to assign one of my real internet IP addresses for a Web client; it would give me a ceiling I'd rather not have. But if that's the way it's done, that's the way I have to do it... Better if the name server could do the aliasing on the basis of symbolic names... Thanks to all for the responses. Regards, John -- John R. Haggis haggis@netcom.com