From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH] unbound: make local zone transparent Date: Tue, 28 Apr 2020 06:55:32 +0200 Message-ID: In-Reply-To: =?utf-8?q?=3CAM0PR03MB605172FBC34473CAF58BECD5FCAF0=40AM0PR03MB?= =?utf-8?q?6051=2Eeurprd03=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7568250887847281503==" List-Id: --===============7568250887847281503== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Giovanni, welcome and thanks for the patch. Makes sense to me. :-) Thanks, and best regards, Peter M=C3=BCller Reviewed-by: Peter M=C3=BCller > Fixes: https://bugzilla.ipfire.org/show_bug.cgi?id=3D12391 > Change local zone to "trasnparent" instead of "typetrasnparent" to avoid NX= DOMAIN when querying local hosts >=20 > Signed-off-by: Giovanni Aneloni > --- > diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound > index acbf6f5b5..825ac74ec 100644 > --- a/src/initscripts/system/unbound > +++ b/src/initscripts/system/unbound > @@ -81,7 +81,7 @@ write_hosts_conf() { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # Skip empty = domainnames > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [ "${domainna= me}" =3D "" ] && continue >=20 > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "local-zone= : ${domainname} typetransparent" > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "local-zone= : ${domainname} transparent" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 done < /var/ipfire/main/hosts | sort -u >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 # Add all hosts --===============7568250887847281503==--