Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 1996 10:03:52 -0600 (CST)
From:      Joe Greco <jgreco@brasil.moneng.mei.com>
To:        boot@mosquito.com (Bruce Bauman)
Cc:        freebsd-isp@freebsd.org
Subject:   Re: virtual domain setup
Message-ID:  <199601181603.KAA22458@brasil.moneng.mei.com>
In-Reply-To: <199601181433.JAA05182@itchy.mosquito.com> from "Bruce Bauman" at Jan 18, 96 09:33:12 am

next in thread | previous in thread | raw e-mail | index | archive | help
> We are a small ISP with a single class C domain. A couple of customers now
> want virtual domains for e-mail and web sites. I know how to ifconfig the
> aliases and I know how to set up Apache, but the nameserver configuration
> has me a little confused.
> 
> Does anyone have a simple example of how to add a virtual domain to our
> nameserver? We are currently mosquito.com, with 206.205.132.xyz as our
> address, and want to assign some addresses from this range to customers:
> 
> e.g. 206.205.132.10 would be foo.com
>      206.205.132.11 would be bar.com 
> 
>      etc.
> 
> I'm assuming what we are trying to do is indeed possible.

You have to get InterNIC to delegate you both foo.com and bar.com.

You then maintain zone files for both of those zones.

Then it doesn't matter:  you can do whatever you want.  Think about:

---- zone foo.com:
$ORIGIN foo.com.
@               IN      SOA     dns1.mosquito.com. hostmaster.nic.mosquito.com. (
                9601180 86400 14400 604800 86400 )
                IN      NS      dns1.mosquito.com.
                IN      NS      dns2.mosquito.com.
		IN	NS	dns.off.site.backup.net.
;
@		IN	MX	 0 your.mail.hub.mosquito.com.
;
www		IN	A	206.205.132.10

---- zone bar.com:
$ORIGIN bar.com.
@               IN      SOA     dns1.mosquito.com. hostmaster.nic.mosquito.com. (
                9601180 86400 14400 604800 86400 )
                IN      NS      dns1.mosquito.com.
                IN      NS      dns2.mosquito.com.
		IN	NS	dns.off.site.backup.net.
;
@		IN	MX	 0 your.mail.hub.mosquito.com.
;
www		IN	A	206.205.132.11

---- zone 132.205.206.in-addr.arpa:
[...]
10		IN	PTR	www.foo.com.
11		IN	PTR	www.bar.com.
[...]

There really is no such thing as a "virtual" domain.  There is only domain
or no domain.  :-)  The fact that "mosquito.com" is handling mail is irrelevant,
as is the fact that the A records are only alias interfaces on your Web
server.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/342-4847



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601181603.KAA22458>