From owner-freebsd-stable@freebsd.org Fri Aug 24 15:51:23 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BEE0108D751 for ; Fri, 24 Aug 2018 15:51:23 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DD838B9A8 for ; Fri, 24 Aug 2018 15:51:22 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id t25-v6so2089662wmi.3 for ; Fri, 24 Aug 2018 08:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3Of/hfXSrZezWkusW42ANC4/b0vQT3C9JeNnjaapIvY=; b=oV62nA3OT8p0rVR11gNAOxOcajB7t0NaZc+ID9aEG7/i9SJgsmbeyS2HK2kMZXzisu paFG5chyu+2oTDKkP3DLvA7+H+Scw7uThbuEBtWJavhsPQ8hsMZ8OP7wORwolv1uP4iv WsRVzZcRqu70a/5151i/oiLwUGyeSwgAr+IVrTMlrJ/Ma4AI8o9R/+PiC/2GlshJzFvW 53mhIKbs1j7Z4kOzM5bwCiE6Z+eKXTmbQPpld4IdfjCROPAqDUA5lRO+QJVbYT5sj1+k w1PpkyQwB6CkNbATvXrYUFsrPqv2lOJF1sOLprj4DSV6pGBllz9K661yZeCxpfkb4ubI GGbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=3Of/hfXSrZezWkusW42ANC4/b0vQT3C9JeNnjaapIvY=; b=mDyj4FuKT7R4C8tSgYWiru1MvtgNkG5PyAGleZH6sRStwm6M7XSdK++An47+32Aoyl 30uhR8JFiRamrSVLgST7wTECVQY+KnxSDRztUMtuN5g4O9pE4Qsyvx9ydiqUa/0Y9M+J 31AqW5XTkwJmL4hBdVnQ3+t5g9GjLLPK31dLbOtbJvew0/NLGsoVwG2CXsOGQ5HXveMc FfQ8ypJfY2M+xy27VPRZa34yxX2qhRJNtrbTrAUPyScoLeBCgnrGi0NWC+Wdy3E6lEGE 0taUD2hUFawhGhMSZnZdGW7hLuKlU8k/32IXLZGcSidsvsLZP7kkd8ywEesAhWLYIJRm H+qg== X-Gm-Message-State: APzg51A0s0ot0SG2Lm+v4/c/gi41Nu+08leGAUMUQIUJKfiAnaP7NKJN MYbd5Xazk5iLkNNcenxwDV772ri5 X-Google-Smtp-Source: ANB0VdbaxqhRIuswztlkWSEjArkYOl4v3ecQKwvZKIGFCEzaIv86f/n34zIW1V12FG6vvwLPnm10eg== X-Received: by 2002:a1c:65c5:: with SMTP id z188-v6mr1785933wmb.57.1535125881678; Fri, 24 Aug 2018 08:51:21 -0700 (PDT) Received: from gmail.com (tao.xtaz.uk. [2a02:390:7e52::10]) by smtp.gmail.com with ESMTPSA id f17-v6sm5521738wrs.1.2018.08.24.08.51.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Aug 2018 08:51:21 -0700 (PDT) Date: Fri, 24 Aug 2018 16:51:19 +0100 From: Matt Smith To: Stefan Lambrev Cc: freebsd-stable@freebsd.org Subject: Re: Strange unbound behaviour Message-ID: <20180824155119.GA66993@gmail.com> Mail-Followup-To: Matt Smith , Stefan Lambrev , freebsd-stable@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2018 15:51:23 -0000 On Aug 24 16:28, Stefan Lambrev wrote: >Hi, > >I have two DNS servers up and running for my home setup. But for some >reason both stop resolving at some point. > >1st instance is with unbbound from ports, second from base system but >configs are very similar: > ># cat /usr/local/etc/unbound/unbound.conf > directory: /usr/local/etc/unbound > chroot: /usr/local/etc/unbound > >If I restart the service it works again... > In man(5) unbound.conf it says this: # make sure unbound can access entropy from inside the chroot. # e.g. on linux the use these commands (on BSD, devfs(8) is used): # mount --bind -n /dev/random /etc/unbound/dev/random I can see that you use a chroot. I'm wondering if you've not mounted a /dev/random into the chroot and maybe it's running out of free entropy for something and blocking. This might explain why it works for a while and then fails. I do this: In /etc/fstab: devfs /usr/local/etc/unbound/dev devfs rw 0 0 In /etc/rc.conf: devfs_set_rulesets="/usr/local/etc/unbound/dev=devfsrules_unbound" In /etc/devfs.rules: [devfsrules_unbound=10] add hide add path random unhide Might help? -- Matt