From owner-freebsd-questions@freebsd.org Tue Sep 6 14:44:58 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 7690EBC78B3 for ; Tue, 6 Sep 2016 14:44:58 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm31-vm9.bullet.mail.ir2.yahoo.com (nm31-vm9.bullet.mail.ir2.yahoo.com [212.82.97.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBF4EFB3 for ; Tue, 6 Sep 2016 14:44:57 +0000 (UTC) (envelope-from emorrasg@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1473172973; bh=48KSg2aOjA8FnR84YhXDumC1FmIcEG6xfYp1U/kE2DY=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=ik8cTzWwANzBHPvxEPGBvwxHHz9kN8GkiCOjn5qWwEcRu1ETwyGosyzhYf98TreREAaUDQUg+JKXxiHNSjxO8kwXwE83Xz5/Mu/GFJ4QOg1aR1oHe+Pt5dPKVjMU+z/6kz9uMOMQrgNJkCtI9MD6MLbPN99m1QrwgK85avrvGlXTFwVU4ArTv97C2BlqAlklvjCwGJN3dCJ6pV9VQF6ugRYytWYJ5m7o6gpuAlCzZ1dhrcQQbmWX4J8kzOwLuiqrWoEX7SMbewH6iN0x7GgL8kFmUgz02mNZEwa8gzImqQlgpOuaZh4g0ttP2jilElsn9gKGySoev80+acpgUw8ssg== Received: from [212.82.98.51] by nm31.bullet.mail.ir2.yahoo.com with NNFMP; 06 Sep 2016 14:42:53 -0000 Received: from [46.228.39.105] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 06 Sep 2016 14:42:52 -0000 Received: from [127.0.0.1] by smtp142.mail.ir2.yahoo.com with NNFMP; 06 Sep 2016 14:42:52 -0000 X-Yahoo-Newman-Id: 982362.3491.bm@smtp142.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: rf74qkYVM1mo2uA2EeGPlu5QfBHUTmjCPXzedr1eVwejIzG uIHGWX9uHibIl1epFHI051hkb1JzZLM6s0QPEwrx3muaLkTF1_Cs94u.BW4R wJoTgYyyFZcw8WAo2EVZrUABo.Eh66racckfbNqlhZrXRvhsfm8ykn8U40ee Ibu65neEIIF00jJROLmYzVuVP6Zgk2TnllKVwMldML7_moOTjkIfa3G6fU0j RaBuuK0Z7lYFChg9OGoFDpoywHw0A__P4it3MtA3rpGWKMQDbIQSV4W.fNDw wAH6IWBeFtlO7WiuSHkLlN_nlhGLrZ8IYCLVLB05Y69bmADbyu_jXtViAC3m jJ5honvwaq1v7u1Trh5WAjKLxpfMkYlBCFO6gHN1GUEDDyi2JqzofctoazFg ZX3c2Tpt05RyO8sZEa.lHtO_W46V6v.dqhDaHADW2xufGUtTkNdLFUDuHBYi QqTJfHH8Z2Lnt5IcGVXFQQiRPc9AKbWuY1z8Di0VGbx28oy3SW38BehvLdo1 oHcaBQdXJWuGIUQj6FyrbeWnqn5kG_CXUnF7SmPgh3zmJesbst9AxjnjUf5q 5 X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Tue, 6 Sep 2016 11:49:51 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: Query re. /etc/resolv.conf... Message-Id: <20160906114951.930913f90517353398d38e52@yahoo.es> In-Reply-To: <6666070D3E503A5E5747ED16@[10.12.30.106]> References: <6666070D3E503A5E5747ED16@[10.12.30.106]> X-Mailer: Sylpheed 3.5.1 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: Tue, 06 Sep 2016 14:44:58 -0000 On Tue, 06 Sep 2016 10:03:51 +0100 Karl Pielorz wrote: > > Hi, > > We have a number of 10.3-RELEASE-p7 boxes - on which we use unbound > as a local DNS / forwarder. Unbound forwards to a pool of 3 DNS > servers (this is good, because if one fails - unbound handles it). > > In '/etc/resolv.conf' we have: > > search [blah] > nameserver 127.0.0.1 > nameserver 192.168.0.1 > > > We've done this - so that if unbound crashes, the machine should > still be able to resolve names - it'll just be subject to a delay as > the resolver library tries 127.0.0.1 (unbound), doesn't get an answer > so tries the 192.168.0.1 name server (kind of as a last resort). > > > This seems to work OK. However - if we 'turn off' 192.168.0.1, all > local name resolution is subject to a delay, even if unbound is alive > and well - and able to forward/resolve names. > > Commenting out the 192.168.0.1 nameserver line, and everything works > as before, but with it listed (and down) the delay comes back. > > > Can someone confirm this should work that way? - I thought by default > it was always "try the first, timeout, try the second..." Are you sure unbound listen on 127.0.0.1? What a %sockstat | grep unbound shows? Mine: unbound unbound 527 3 udp6 ::1:53 *:* unbound unbound 527 4 tcp6 ::1:53 *:* unbound unbound 527 5 udp4 127.0.0.1:53 *:* unbound unbound 527 6 tcp4 127.0.0.1:53 *:* unbound unbound 527 7 stream /var/run/local_unbound.ctl unbound unbound 527 8 stream -> ?? unbound unbound 527 9 stream -> ?? > It doesn't appear to be working that way for us :( > > -Kp > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --- --- Eduardo Morras