From owner-freebsd-questions@freebsd.org Sun Nov 13 20:42:59 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CC3CC40420 for ; Sun, 13 Nov 2016 20:42:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 218EF1D8A for ; Sun, 13 Nov 2016 20:42:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-250-109.dynamic.qsc.de [92.195.250.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 528AD24DF5; Sun, 13 Nov 2016 21:42:49 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id uADKgnNu002877; Sun, 13 Nov 2016 21:42:49 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 13 Nov 2016 21:42:49 +0100 From: Polytropon To: Marco Beishuizen Cc: freebsd-questions@freebsd.org Subject: Re: unbound forward.conf gets overwritten Message-Id: <20161113214249.4834e89f.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2016 20:42:59 -0000 On Sun, 13 Nov 2016 21:16:42 +0100 (CET), Marco Beishuizen wrote: > I have a local caching dns running using unbound. Everything works, except > accessing the cloud storage. In order to reach the cloud storage server I > added "forward-addr: clo.ud.isp.dns" to /var/unbound/forward.conf. After a > restart of unbound, the cloud storage is reachable. > > But after a reboot de file forward.conf gets overwritten and all forward > addresses are gone. > > So how do I get the cloud storage address accessible in unbound? If I remember correctly, /var/unbound content is getting generated automatically, so changes to those files will not survive a reboot. Check "man unbound.conf" on how to set the forward-addr options in the ("static") configuration file. At service (re)start, those should cause the required settings in /var/unbound/forward.conf to appear. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...