From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 19:50:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9482E16A41F for ; Sun, 6 Nov 2005 19:50:49 +0000 (GMT) (envelope-from paul@xk7.net) Received: from mra03.ex.eclipse.net.uk (mra03.ex.eclipse.net.uk [212.104.129.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFDC443D48 for ; Sun, 6 Nov 2005 19:50:48 +0000 (GMT) (envelope-from paul@xk7.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id 3240E2E2978; Sun, 6 Nov 2005 19:50:47 +0000 (GMT) Received: from mra03.ex.eclipse.net.uk ([127.0.0.1]) by localhost (mra03.ex.eclipse.net.uk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01929-03-3; Sun, 6 Nov 2005 19:50:46 +0000 (GMT) Received: from kryten.xk7.net (unknown [81.168.90.101]) by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id 1D2432E295E; Sun, 6 Nov 2005 19:50:46 +0000 (GMT) Received: by kryten.xk7.net (Postfix, from userid 1001) id D6BE91703E; Sun, 6 Nov 2005 19:48:27 +0000 (GMT) Date: Sun, 6 Nov 2005 19:48:27 +0000 From: Paul Waring To: "Edwin D. Vinas" Message-ID: <20051106194827.GA755@kryten.xk7.net> References: <36f5bbba0511061138k4f9b5ef5q2fefed621c9ffc6b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36f5bbba0511061138k4f9b5ef5q2fefed621c9ffc6b@mail.gmail.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk Cc: freebsd-questions@freebsd.org Subject: Re: how to setup DNS server and making sub-domains in DSL server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 19:50:49 -0000 On Sun, Nov 06, 2005 at 11:38:59AM -0800, Edwin D. Vinas wrote: > 1) Is it correct that I only need to register or pay for the main domain? Yes, provided you choose a registrar who will allow you to change the namservers on the daomin - i.e. they don't force you to use their nameservers in conjunction with a web hosting package or something (123-reg.co.uk will definitely work as I use them for a similar setup to the one you describe). > 2) Is it correct that through my local DNS server, I can add sub hosts (sub1 > to sub3) without anymore registering those sub domains and pay for them in > my main domain provider? That's correct. Adding a subdomain is generally a case of adding one line to the zone file for that particular domain (assuming you're just adding a simple subdomain that isn't going to be delegated or receive mail or anything comlicated like that) and telling Bind to reload the zone file (/etc/rc.d/named reload will usually work, although I find I often have to use restart instead of reload for some reason). > 3) Provided that I already have successfully setup my local DNS server, > Apache virtual hosting and main domain activated, is it straightforward that > I can already access the sub domains (i.e., websites) from the Internet? Assuming you're not behind a firewall of any type (or you setup the relevant rules), then it should be fairly simple to make everything accessible from the rest of the Internet. If your main domain works, then any subdomains on the same machine should do as well. > 4) Do I need to register sub1, sub2 and sub3 in any external domain > provider? No, you'd just tell your registrar to change the nameservers to whatever your local DNS servers are. Most will have a control panel allowing you to do this easily. > 5) Can you provide some sample configs if you are already doing this setup? > Thank you in advance! What kind of sample config? If you're not doing anything special, any tutorial on DNS/Bind will show you how to setup subdomains. Paul -- Rogue Tory http://www.roguetory.org.uk