From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 01:20:11 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 3126016A41F for ; Mon, 4 Jul 2005 01:20:11 +0000 (GMT) (envelope-from ken@idealinter.net) Received: from mail.idealinter.net (mail.idealinter.net [72.242.8.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2EA543D48 for ; Mon, 4 Jul 2005 01:20:10 +0000 (GMT) (envelope-from ken@idealinter.net) Received: from [192.168.0.2] (unknown [72.242.8.254]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.idealinter.net (Postfix) with ESMTP id 5750C10E42C; Sun, 3 Jul 2005 21:20:10 -0400 (EDT) In-Reply-To: References: <28EDBC57-9AE6-4D8B-9BA5-F8445C71600F@gmail.com> <20050703125754.53452296@phobos.mars.bsd> <20050703200156.52602591@phobos.mars.bsd> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1F4B89A9-C671-43C1-89DE-405F76F20E2F@idealinter.net> Content-Transfer-Encoding: 7bit From: Ken Ebling Date: Sun, 3 Jul 2005 21:20:09 -0400 To: Alan Curtis X-Mailer: Apple Mail (2.730) Cc: freebsd-questions@freebsd.org Subject: Re: DNS setup 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: Mon, 04 Jul 2005 01:20:11 -0000 On Jul 3, 2005, at 8:21 PM, Alan Curtis wrote: > > On Jul 3, 2005, at 7:01 PM, Alejandro Pulver wrote: > > >> If you want examples I can provide you some. >> >> Then let me know if you want option 1) or 2) so I can help you >> with the >> next step. >> >> 1) Have an independent DNS server on each machine (there is one for >> Windows called TreeWalk - free -, that is the same as named). >> >> 2) Put a DNS server on *one* machine, and that DNS server is used >> by all >> the machines on the network. >> >> > > I would like to implement 2. > > Thanks for your help. > > Alan It's pretty easy to get working on FreeBSD 5.3. This is how I'd do it: 1) cd /etc/named 2) sh make-localhost 3) echo "named_enable=\"YES\"" >> /etc/rc.conf (note two double quotes after "YES\" and two ">") 4) edit /etc/namedb/named.conf to suit your needs. (you'll probably need to change the "listen-on" directive to add the IP address of your machine, because it's defaulted to 127.0.0.1, which means bind won't be listening on the network interface.) 5) /etc/rc.d/named start That's it. Now your machines can be configured to use that system as their primary name server. You may still want to do some things, like disallow other people from using your name servers, by only enabling "recursion" for your machines. You can find detailed instructions on configuring recursion here: http://www.netadmintools.com/art234.html Ken Ebling