*BSD News Article 73295


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!tezcat.com!gail.ripco.com!dr
From: dr@ripco.com (David Richards)
Subject: Re: Domain Names
X-Nntp-Posting-Host: cook.ripco.com
Message-ID: <DuB9E0.A1G@rci.ripco.com>
Sender: usenet@rci.ripco.com (Net News Admin)
Organization: Ripco Internet BBS, Chicago
References: <Du8zt3.4qz@alisa.org>
Date: Wed, 10 Jul 1996 04:49:12 GMT
X-Ident-Sender: dr
Lines: 55

In article <Du8zt3.4qz@alisa.org>, John J. Rushford <wjjr@alisa.org> wrote:
>
>I've got some basic questions about domain names and could not find anything
>on the subject in the FreeBSD Handbook.  I thought I'd post here for some
>answers and advice.  Would appreciate any info on the subject.
>
>I've got a FreeBSD 2.1 machine that I use to access the internet via ppp and
>I've registered a domain name with the NIC, alisa.org.  On my machine, I've
>merely set the hostname to 'alisa.org' and have no domain name set. Everything,
>mail, telnet, rlogin, etc work fine.  Now, I want to set up a web page on the
>machine, www.alisa.org.  Here is my question:
>
>  1) Do I have to run 'named', DNS, so that hosts on the internet can 
>     resolve to www.alisa.org?  If so, would I have to arrange for some
>     kind of DNS record in my ISP's database, beyond what they have already
>     for alisa.org?  I've just begun to read the DNS and BIND O'Reilly book.

You need to have your ISP add 'www.alisa.org' to the DNS entry for 'alisa.og'
on their name server, right now only your ISP is queried for information
about hosts in your domain.

Or you could run a nameserver on your machine and ask that your ISP change the
Internic entry so your system is the primary nameserver for your domain, 

>  2) I'm interested in providing web pages to customers on the machine and
>     some want their on domainname.  Is it possible to have multiple domain
>     names on the same machine?  If so, How does one set this up?

Yes, it is possible. The 'cheap' way to do this is to just have the other
domains resolve to your IP address, and use url's of the form:
	http://www.company1.com/company1
	http://www.company2.com/company2

The drawback is that under the current HTTP protocol, there is _no_ way
for the server to serve a different page for each company without that
extra "/companyX" on the end of the URL, except for the current Netscape
versions. This also means that the URL:

	http://www.company1.com/company2

Will bring up the pages for company2! Not exactly a desirable effect.


The 'real' way to do virtual hosting is is with IP aliasing- adding an
additional IP address for each unique domain name, but it is very unlikely
that your ISP will cooperate by giving you many more addresses just so you
can compete with their service...

FreeBSD (and NetBSD,Linux, WinNT) supports IP aliasing, and can handle
several dozen addresses easily.
--
David Richards                             Ripco, since Nineteen-Eighty-Three
My opinions are my own,                    Public Access in Chicago
But they are available for rental          Shell/SLIP/PPP/UUCP/ISDN/Leased
dr@ripco.com                               (312) 665-0065 !Free Usenet/E-Mail!