From owner-freebsd-questions@FreeBSD.ORG Sat Oct 2 09:23:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3665A106566B for ; Sat, 2 Oct 2010 09:23:42 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id DB0408FC15 for ; Sat, 2 Oct 2010 09:23:40 +0000 (UTC) Received: by qyk8 with SMTP id 8so393686qyk.13 for ; Sat, 02 Oct 2010 02:23:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=ZvukPZ8G+JzBVFeSDM3y4bL4oE9oBbpFTCSq8dsLPxA=; b=jZmnut4r8Q49nr8yOCsydlL219iZZR5A6AUffzIFBGyk1ihiOTPovb/E7yqrMNOtXr HCNMo4rBW4tc60rylQgSZ5Pj994uDIceyBOvVB8B7OCnfxrwCxYqjU41PYvZOPxlIl4m IDPVb+7WhHd/Zv3PcSwFX03PHqzj4Bnua6bZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mV/S4GVljlLFvq00q6Pt5QUBG2BR1+ZQ2OuxRotZ7r06CJKWI+cXWrHJzVgwdGxlWy 7ccRYZ2gWjKfEgw3zFN2qBt78yqQoUJ59RGlCjXOQVOJgLAD3CI+R3KHeRObv+IkomWP L0llA4X1cRJuNcfZwy7Db2M+ZLDxoj+ZeUABE= MIME-Version: 1.0 Received: by 10.224.75.211 with SMTP id z19mr4682833qaj.185.1286011420205; Sat, 02 Oct 2010 02:23:40 -0700 (PDT) Received: by 10.229.215.209 with HTTP; Sat, 2 Oct 2010 02:23:40 -0700 (PDT) In-Reply-To: <4CA6419C.3050109@cyberleo.net> References: <4CA61FE5.9050306@teksavvy.com> <4CA6419C.3050109@cyberleo.net> Date: Sat, 2 Oct 2010 10:23:40 +0100 Message-ID: From: krad To: CyberLeo Kitsana Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Matthew , freebsd-questions@freebsd.org Subject: Re: BIND: could not configure root hints from 'named.root': file not found 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: Sat, 02 Oct 2010 09:23:42 -0000 On 1 October 2010 21:16, CyberLeo Kitsana wrote: > On 10/01/2010 12:52 PM, Matthew wrote: > > I would be grateful for any pointers on how to resolve this. I suspect > > the error message may not be exactly descriptive of whats happening. > > Kinda. > > Here's a few points to keep in mind when working with bind in FreeBSD: > > * By default, named runs in a chroot jail rooted at /var/named/. > > * For security reasons, named cannot write to anything in that tree, > except the dynamic, slave, and working directories. > > * named uses its current working directory to resolve relative pathnames > in the configuration file. > > * With a recent change to ISC Bind 9, named started complaining if it > couldn't write to its current working directory. At the time, this was > (chroot)/etc/namedb/; this was subsequently changed to > (chroot)/etc/namedb/working/ to make named happy without compromising > security. > > When the working directory for named was (chroot)/etc/namedb/, > everything was peachy. Since this was changed, relative pathnames no > longer work as expected because the reference point is different. The > easiest solution is to alter your configuration file to include only > absolute pathnames, relative to the root of the jail. > > The default named config file (in /var/named/etc/namedb/named.conf) is > an excellent source of examples for this. > > -- > Fuzzy love, > -CyberLeo > Technical Administrator > CyberLeo.Net Webhosting > http://www.CyberLeo.Net > > > Furry Peace! - http://wwww.fur.com/peace/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Hmm, options { directory "."; that doesnt look ideal. Not sure if you are meaning to do that but put an explicit direcorty in eg /etc/namedb. Otherwise it will be looking in whatever current directory you are in at that time. The main named.conf will be found as its supplied via a cli switch by the rc script. However all subsequent files will come from the current dir