From owner-freebsd-questions Sat Jul 1 13: 2: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id 239E237B819 for ; Sat, 1 Jul 2000 13:01:59 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id OAA51679; Sat, 1 Jul 2000 14:03:53 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Sat, 1 Jul 2000 14:03:52 -0600 (CST) From: Ryan Thompson To: David Ellefsen Cc: questions@FreeBSD.ORG Subject: Re: DNS In-Reply-To: <001901bfe392$597407d0$53b21ec4@zeus> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Ellefsen wrote to questions@FreeBSD.ORG: > Hi! > > I need some help in setting up a simple DNS server for my home > network, I have followed many different examples with not much > success. it always tells me that the IP of the machine is already in > use, could you please tell me how to set up a successfull DNS server > (using named) please, or even sen me examples? > You mean something like: Cannot bind ... [10.0.0.1].53): Address already in use In that case, an instance of named is already running (probably since bootup), thus inetd can not bind another server to the same address.port. Check the output of ``ps -ax | grep named'' (without the quotes, of course). The key files to edit to configuring a nameserver exist in /etc/namedb If you simply want to speed DNS queries by enabling caching, you can enable forwarding only in /etc/namedb/named.conf: forward only; forwarders { 112.13.15.2; }; where 112.13.15.2 should be replaced with the name of your ISP's nameserver. You will benefit from somewhat faster DNS queries if you are over dialup or other high-latency link to your ISP, or if their nameserver is under load. Though, many client applications such as browsers do name caching of their own to some extent, so you may not notice an appreciable performance gain unless you are running other daemons. After editing /etc/namedb/named.conf, issue the command 'ndc restart' to restart/reload BIND. (ndc reload also works) If, on the other hand, you want to run an authoritative nameserver for one or more domains, I STRONGLY recommend you first read some good material on the subject, such as O'Reilly's "DNS and BIND". Incorrectly setting up an authoritative nameserver can break connectivity if you have subclients, and generate a lot of useless traffic even if you don't. Also ensure that your ISP's security policy allows you to run a name daemon, as well. "Home network" usually implies "personal connection". > Thanks > David > Virtually yours, - Ryan -- Ryan Thompson Systems Administrator, Accounts Phone: +1 (306) 664-1161 SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message