From owner-freebsd-questions@FreeBSD.ORG Thu Oct 31 10:33:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1B65A3D4 for ; Thu, 31 Oct 2013 10:33:59 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [IPv6:2607:f8b0:400d:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D017F20DD for ; Thu, 31 Oct 2013 10:33:58 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id ii20so4412709qab.18 for ; Thu, 31 Oct 2013 03:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AhHgpxmaf2r6Wsp7VbQ3G+hKz+DHlwIo12PocC3AM1M=; b=EEXR9i42dYHi9hXVzlzymL0bBDeF//VwddNPTF53O8pe3ep4/HcBmjohGi1zPSNEua Gd7MCbxgNzkxmPuNgACffxeUEetq61fb/uhOJ4zYtwokkXaexzsRLwIytOw7ifdx9rSL 3zQi108mqOoRNCGrb8sXsih90/Wm2YP8a5gxizYQACRKJ+Su1o7dSkUo5HO+yx7hwl5G jEJfD0PRyDSixFYaRct+7seo3+drFadC7ltqOzkIVW0wgt39ivQGkxuPb4ROB5tlp2F9 juOUuPzicvJ/dtaXhXbtiChjUxpo2xRl7jJxDXSA6d/Ll3pP0ZSGjMaJUa0PGr/ESyIl DQeA== MIME-Version: 1.0 X-Received: by 10.224.120.6 with SMTP id b6mr3961450qar.11.1383215637976; Thu, 31 Oct 2013 03:33:57 -0700 (PDT) Received: by 10.224.55.77 with HTTP; Thu, 31 Oct 2013 03:33:57 -0700 (PDT) In-Reply-To: <5270FCF2.1030209@pukruppa.de> References: <5270C384.9040502@pukruppa.de> <5270DDC0.2050603@gmail.com> <5270FCF2.1030209@pukruppa.de> Date: Thu, 31 Oct 2013 10:33:57 +0000 Message-ID: Subject: Re: How to set up unbound on FreeBSD 10 From: krad To: Peter Ulrich Kruppa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Wei Guo , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 10:33:59 -0000 have you edited the config files eg # specify the interfaces to answer queries from by ip-address. # The default is to listen to localhost (127.0.0.1 and ::1). # specify 0.0.0.0 and ::0 to bind to all available interfaces. # specify every interface on a new 'interface:' labelled line. # The listen interfaces are not changed on reload, only on restart. # interface: 0.0.0.0 # interface: ::0 # interface: 192.0.2.153 # interface: 192.0.2.154 # interface: 2001:DB8::5 # # for dns over tls and raw dns over port 80 # interface: 0.0.0.0@443 # interface: ::0@443 # interface: 0.0.0.0@80 # interface: ::0@80 # enable this feature to copy the source address of queries to reply. # Socket options are not supported on all platforms. experimental. On 30 October 2013 12:34, Peter Ulrich Kruppa wrote: > > > On 10/30/13 11:21, Wei Guo wrote: > > > > =E4=BA=8E 10/30/13, 4:29 PM, Peter Ulrich Kruppa =E5=86=99=E9=81=93: > >> Hi, > >> > >> as I can see there is a new default dns server shipping with FreeBSD 1= 0: > >> unbound. > >> > >> When I try to set it up as described in > >> > >> http://blog.des.no/2013/09/local-caching-resolver-in-freebsd-10/ > >> > >> by typing > >> > >> # echo local_unbound_enable=3Dyes >>/etc/rc.conf > >> # service local_unbound start > >> > >> I am locked out of my internet connection and nobody is served any dns= . > >> So I guess something must be missing. > >> For example: Do I have to mount any devfs ? > > I guess you must have the following line in your ppp.conf: > > > > disable dns > > > > in order to stop ppp(8) from rewriting your /etc/resolv.conf. And you > > to can edit /var/unbound/forward.conf and /var/unbound/unbound.conf > > to meet your demands. > Thanks, that is a good hint - but it doesn't solve the problem. > As soon as I activate unbound I no dns requests from my machine (neither > from any other) will be answered. > > Greetings > > Peter > > > > > >> > >> My machine has got two nics: one unconfigured to dial in to an ADSL > >> connection via DSL bridge and one with IP 192.168.10.1 to my LAN. > >> > >> With old named/bind all I need to set is > >> > >> named_enable=3D"YES" > >> in /etc/rc.conf and > >> > >> listen-on { 127.0.0.1; > >> 192.168.10.1;}; > >> in /var/named/etc/namedb/named.conf > >> > >> > >> > >> Thanks for your help > >> > >> Peter > >> _______________________________________________ > >> freebsd-questions@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >> To unsubscribe, send any mail to > >> "freebsd-questions-unsubscribe@freebsd.org" > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >