From owner-freebsd-isp Thu Jan 18 08:05:19 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA16603 for isp-outgoing; Thu, 18 Jan 1996 08:05:19 -0800 (PST) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA16596 for ; Thu, 18 Jan 1996 08:05:14 -0800 (PST) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id KAA22458; Thu, 18 Jan 1996 10:03:53 -0600 From: Joe Greco Message-Id: <199601181603.KAA22458@brasil.moneng.mei.com> Subject: Re: virtual domain setup To: boot@mosquito.com (Bruce Bauman) Date: Thu, 18 Jan 1996 10:03:52 -0600 (CST) Cc: freebsd-isp@freebsd.org In-Reply-To: <199601181433.JAA05182@itchy.mosquito.com> from "Bruce Bauman" at Jan 18, 96 09:33:12 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-isp@freebsd.org Precedence: bulk > 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