From owner-freebsd-current@FreeBSD.ORG Thu Sep 26 11:26:14 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D36F83E5 for ; Thu, 26 Sep 2013 11:26:14 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6B69A23F1 for ; Thu, 26 Sep 2013 11:26:14 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.80.1) with esmtp (envelope-from ) id <1VP9i0-001qJO-48>; Thu, 26 Sep 2013 13:26:12 +0200 Received: from g225185164.adsl.alicedsl.de ([92.225.185.164] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.80.1) with esmtpsa (envelope-from ) id <1VP9hz-004Agd-Vb>; Thu, 26 Sep 2013 13:26:12 +0200 Date: Thu, 26 Sep 2013 13:26:07 +0200 From: "O. Hartmann" To: Alastair Hogge Subject: Re: [CURRENT] unbound: zonefiles? Message-ID: <20130926132607.50cc4752@thor.walstatt.dyndns.org> In-Reply-To: <20130926110645.GE39898@direwolf.aux.io> References: <20130926112648.00422d7a@thor.walstatt.dyndns.org> <20130926110645.GE39898@direwolf.aux.io> Organization: FU Berlin X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/QRxoahc7nC7L+.Ki/jrjWXd"; protocol="application/pgp-signature" X-Originating-IP: 92.225.185.164 Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2013 11:26:15 -0000 --Sig_/QRxoahc7nC7L+.Ki/jrjWXd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, 26 Sep 2013 19:06:47 +0800 Alastair Hogge wrote: > On 2013-09-26 Thu 11:26:48 +0200, O. Hartmann wrote: >=20 > Hi, >=20 > > I try my first steps with "unbound" on most recent current and > > snealing through the web I find interesting things and howto's. But > > I realise if I'd like to replace my office's DNS server (based on > > BIND as it was part of the FreeBSD world) I run into a serious > > problem regarding the zone- and authorative files keeping all the > > PTR and A records. As I can see in the unbound.conf, the statements > > of those files (address to name resolution, name to address > > resolution) is now somehow hard coded into unbound.conf via those > > appropriate config tags like local-zone and local-data. Since I > > have some larger files defining a local domain, I'd expect having a > > data file to be loaded. >=20 > Are you after include? YES!!!! Somehow I must be blind! I'm studying the manpage all the morning ... And I missed the include part. Thanks. >=20 > $ man unbound.conf >=20 > # Files can be included using the include: directive. It can appear > any=E2=80=90 # where, it accepts a single file name as argument. Proces= sing > continues # as if the text from the included file was copied into > the config file # at that point. If also using chroot, using full > path names for the # included files works, relative pathnames for > the included names work if # the directory where the daemon is > started equals its chroot/working # directory. Wildcards can > be used to include multiple files, see # glob(7). >=20 > I use include to configure my network at home: >=20 > $ cat /usr/local/etc/unbound/local.hosts > local-data: "kropotkin.local.host. IN A 10.0.0.1 > local-data-ptr: "10.0.0.10 kropotkin.local.host. >=20 > local-data: "berkman.local.host. IN A 10.0.0.11" > local-data-ptr: "10.0.0.11 berkman.local.host." >=20 > local-data: "bakunin.local.host. IN A 10.0.0.12" > local-data-ptr: "10.0.0.12 bakunin.local.host." >=20 > Salud, > alastair > -- > Drug, n.: > A substance that, when injected into a rat, produces a > scientific paper. --Sig_/QRxoahc7nC7L+.Ki/jrjWXd Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBAgAGBQJSRBnTAAoJEOgBcD7A/5N8+rEH/jbwJ9ZgEoBgfgP+FEaYarkC Ixno8f65u1+K0SATEz6OJUtSejWjcm5Clv/8J6UuiGy70pHCII3PlF+5Owi0usd8 ErRB6r6Z+nxbzuEfk0jHE/JhnsaSLUTJsvWAPGvqs2yZvuMR2Tjo6GDlG2iTWL9l nTKXIayk+bw5tFSiKE8NTYfmcqP0ySl/aBWvsFkBUAd1o9MviO+vII6qfD1OqA/H 4xshTPpCCwCjLLhjgvfdCZu7wwqHCF/ykVZBmT9E8KkQy8XO00FYZozXZgjxc8lE yVHRq7i6XB+5tw2oSqfskg9WaYAp7cN2bzL/6FQ5GsRUPejZikQtnl7TtjpRtZc= =Eqzj -----END PGP SIGNATURE----- --Sig_/QRxoahc7nC7L+.Ki/jrjWXd--