From owner-freebsd-bugs@freebsd.org Wed Jun 26 20:42:41 2019 Return-Path: Delivered-To: freebsd-bugs@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 D5D6015D1D12 for ; Wed, 26 Jun 2019 20:42:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 721148748E for ; Wed, 26 Jun 2019 20:42:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3059115D1D0F; Wed, 26 Jun 2019 20:42:40 +0000 (UTC) Delivered-To: bugs@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 0B00515D1D0E for ; Wed, 26 Jun 2019 20:42:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 979058748B for ; Wed, 26 Jun 2019 20:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B57281DE76 for ; Wed, 26 Jun 2019 20:42:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5QKgcub078622 for ; Wed, 26 Jun 2019 20:42:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5QKgcnV078621 for bugs@FreeBSD.org; Wed, 26 Jun 2019 20:42:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238819] local-unbound: Improve default configuration Date: Wed, 26 Jun 2019 20:42:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: des@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Works As Intended X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2019 20:42:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238819 Dag-Erling Sm=C3=B8rgrav changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |Works As Intended --- Comment #1 from Dag-Erling Sm=C3=B8rgrav --- (In reply to tschweikle from comment #0) > Missing are: > - allow localhost to query This is the built-in default. > - allow private addresses > - allow private addresses reverse lookup This is what =E2=80=9Cunblock-lan-zones=E2=80=9D and =E2=80=9Cinsecure-lan-= zones=E2=80=9D are for. > - dont cache failed requests to forwarders (may lead to problems if your > printer was turned of, you tried to print, and then you notice it is turn= ed > of. You turn it on and then: printing just fails, because unbound did cac= he > the "notfound"). Unless your printer is also your DNS server, it being off will in no way af= fect Unbound's behavior. Since you're running FreeBSD 12, I recommend switching to DNS over TLS, as described here: https://blog.des.no/2018/10/dns-over-tls-in-freebsd-12/ If you have a local DNS server that serves private zones, you will need to = add an exception for those zones. Put something like this in /var/unbound/conf.d/private-zones.conf, then run `local-unbound-control reload`: forward-zone: # Replace "example.local" with the name of your zone and # "172.16.0.1" with the IP address of your local DNS server. name: example.local. forward-addr: 172.16.0.1 # Allow your zone to contain RFC 1918 addresses. private-domain: "example.local." # Ignore DNSSEC errors for your zone. domain-insecure: "example.local." # Do not use TLS for this forwarder. forward-tls-upstream: no # Fall back to the main forwarder if this one fails. # This is rarely needed, but it doesn't hurt. forward-first: yes --=20 You are receiving this mail because: You are the assignee for the bug.=