From owner-freebsd-questions@FreeBSD.ORG Thu Feb 24 21:24:44 2005 Return-Path: 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 3A91916A4CE for ; Thu, 24 Feb 2005 21:24:44 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6977343D5D for ; Thu, 24 Feb 2005 21:24:43 +0000 (GMT) (envelope-from j65nko@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so263766wra for ; Thu, 24 Feb 2005 13:24:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=atZppqZu3mSG6LWy8aC3e0oa3YEgZ46jDDV8u1XuOXYeqFVF2XLZ4XpijIW4wpGSApOc1qeEc1wp6PRD1bndZZVuqM1CitF5fLvGEybH/AH7hYqorvnUZNRMQwdETOf6SSK+cVaZi969GG0mYhcqog7eaXlqsC2Dwwzq9M8F6n8= Received: by 10.54.22.71 with SMTP id 71mr36821wrv; Thu, 24 Feb 2005 13:23:49 -0800 (PST) Received: by 10.54.37.16 with HTTP; Thu, 24 Feb 2005 13:23:48 -0800 (PST) Message-ID: <19861fba05022413235d2bf235@mail.gmail.com> Date: Thu, 24 Feb 2005 22:23:48 +0100 From: J65nko BSD To: darryl@osborne-ind.com In-Reply-To: <19861fba050224131817b752b9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <005d01c519e8$97056f30$0701a8c0@darryl> <19861fba050224131817b752b9@mail.gmail.com> cc: freebsd-questions@freebsd.org Subject: Re: djbdns question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: J65nko BSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 21:24:44 -0000 On Thu, 24 Feb 2005 22:18:01 +0100, J65nko BSD wrote: > On Wed, 23 Feb 2005 14:45:16 -0600, Darryl Hoar wrote: > > Greetings, > > I setup djbdns on a freebsd server attached to my internal network. > > It answers for the local machine on the domain for my internal while > > forwarding all others to our ISP for resolution. > > > > I set this up a 2 years ago and haven't needed to do a thing other > > than to add/remove machines. > > > > Well, now I need to change the domain name from osborneindustries.com > > to osborneinternal.com. Unfortunately, I haven't found any documentation > > that takes you through the changes to convert and already running > > tinydns/dnscache > > setup from one domain name to a different one. > > > > Anybody have any pointers here ? > > Change directory to the tinydns data directory (cd > /service/tinydns/root) , edit your tinydns data file. Editing can be > done in one sweep with > > # mv data data.old > # sed -e 's/osborneindustries.com/osborneinternal.com/g' data.old >data > > Now run "make" to generate a new "data.cdb" file from the edited > "data" file. Tinydns will notice the change, no need to start/stop or > give a -HUP to tinydns. > > The only other thing left is to tell dnscache about the change. > > # cd /service/dnscache/root/servers > You will see a file called "osborneindustries.com" The contents of > that file is the IP address of your tinydns server. Rename this file > with "mv" to "osborneinternal.com" > I forget to mention that a restart of dnscache is needed # svc -t /service/dnscache At http://www.freebsdforums.org/forums/showthread.php?s=&threadid=25244 you can find a comfortable "dnscachectl" script to start/stop and many other things with dnscache. =Adriaan=