From owner-freebsd-current@FreeBSD.ORG Thu Sep 26 11:06:56 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EBC9AFDB for ; Thu, 26 Sep 2013 11:06:55 +0000 (UTC) (envelope-from agh@fastmail.fm) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BBFE7233E for ; Thu, 26 Sep 2013 11:06:55 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1D85120AAA; Thu, 26 Sep 2013 07:06:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 26 Sep 2013 07:06:54 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=smlIQmIM52K9q8KkWKvAMqACP3w=; b=NW+r3DHVBJDqDb6s2Ng8EcRh340X Ayj7LSgGg+xlAXEH/X6yKWDmRG5Ut706d/I5clMgLRsmARaLc6SMzT70iu72uLW+ 43VF3vUtw9vF0FxsyiE355L7kGsPS7/KcjFIb+CmKofMp4KEo9F3m9cvXM7uO0cl vJLN4sHz5VLlISw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=smtpout; bh=smlIQmIM52K9q8KkWKvAMqACP3w=; b=DBfc xGvs2EeFg153yZFiKsDSc+k1B01kTQ6liswxD9+CATduJnZA5koCv6GH9KuE7FNG 1CJI0TVf5fKX6Mwu0zwJja3fVtIYeUlHqncRoy6EQHvzyiNvz877IldlSJzLTiY0 r3FLXmVr5qSpAn0lNjyHuGFoiB3PEbBpp9YP7RM= X-Sasl-enc: KCdV2P/2uFl5JzAdnkon4k4F+mtMAn0638+Epa0HZ2TU 1380193613 Received: from direwolf.aux.io (unknown [203.59.221.16]) by mail.messagingengine.com (Postfix) with ESMTPA id 9CCDD6800F7; Thu, 26 Sep 2013 07:06:52 -0400 (EDT) Date: Thu, 26 Sep 2013 19:06:47 +0800 From: Alastair Hogge To: "O. Hartmann" Subject: Re: [CURRENT] unbound: zonefiles? Message-ID: <20130926110645.GE39898@direwolf.aux.io> References: <20130926112648.00422d7a@thor.walstatt.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130926112648.00422d7a@thor.walstatt.dyndns.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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:06:56 -0000 On 2013-09-26 Thu 11:26:48 +0200, O. Hartmann wrote: Hi, > 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. Are you after include? $ man unbound.conf # Files can be included using the include: directive. It can appear any‐ # where, it accepts a single file name as argument. Processing 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). I use include to configure my network at home: $ 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. local-data: "berkman.local.host. IN A 10.0.0.11" local-data-ptr: "10.0.0.11 berkman.local.host." local-data: "bakunin.local.host. IN A 10.0.0.12" local-data-ptr: "10.0.0.12 bakunin.local.host." Salud, alastair -- Drug, n.: A substance that, when injected into a rat, produces a scientific paper.