From owner-freebsd-stable@FreeBSD.ORG Wed Feb 19 13:49:07 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 725D2BD0 for ; Wed, 19 Feb 2014 13:49:07 +0000 (UTC) Received: from mail-ea0-x232.google.com (mail-ea0-x232.google.com [IPv6:2a00:1450:4013:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 07DB4187E for ; Wed, 19 Feb 2014 13:49:06 +0000 (UTC) Received: by mail-ea0-f178.google.com with SMTP id a15so371395eae.37 for ; Wed, 19 Feb 2014 05:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=/PyD6I5K9i0aZqoBI+juD4FSKQhN6CJwrTHq8ViTWLw=; b=wIKwYTArXkPZIla9kqKH/6TW+vZPNVCuEFI7CqQrYELAglUfPb87SJjyVEVw8MwNQB KPWy9s2U307F04ftRDM1UNOE6FQ4LE3abIUMCkViS6lAhq5EJMGosQ/6wfMlBzIYMhHI C+T8DtLb3MDC95M3QUU1fgbx6W9taVIe5hBPs9NxtunBe0hSq1fdfGxkmqs39jmjWG0J luloxnXWZZXJOQ4JdrIPzE+LvlKL9R30AV8G8cCvGoovQtJMJH6tWCGnxVdltzvtjBPb mh109P1M4Wxn5z0Sa3EE3QdAT3mrJL2Npe8PKLHFjg4ATu9PsO/7TxWAwdujf5+i71Su gV3g== X-Received: by 10.15.26.8 with SMTP id m8mr40858690eeu.25.1392817744851; Wed, 19 Feb 2014 05:49:04 -0800 (PST) Received: from [172.29.2.131] (altimet-gw.cs2.dp.wnet.ua. [217.20.178.249]) by mx.google.com with ESMTPSA id s46sm1003000eeb.0.2014.02.19.05.49.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Feb 2014 05:49:03 -0800 (PST) Message-ID: <5304B65C.1040500@gmail.com> Date: Wed, 19 Feb 2014 15:49:16 +0200 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: Dmitry Sivachenko , stable@freebsd.org Subject: Re: options timeout in resolv.conf does not work in stable/10 References: <40E84CA7-E815-4B5E-AF0F-4B29C8B58186@gmail.com> In-Reply-To: <40E84CA7-E815-4B5E-AF0F-4B29C8B58186@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 13:49:07 -0000 Dmitry Sivachenko wrote: > I have the following /etc/resolv.conf: > > domain domain.my > nameserver IP1 > nameserver IP2 > options timeout:1 > > > On FreeBSD-9-STABLE, if IP1 is down, I get a dns response from IP2 after 1 second. > On FreeBSD-10, I get dns response from IP2 after 10 seconds. > > I see no changes in resolv.conf(5) man-page about timeout parameter. > > What am I missing? Are you using host(1) command for this? If so, host(1) in 10-RELEASE does not respect 'options' from resolv.conf (there's a note about this in it's man page); the system resolver (that is, anything based on getaddrinfo(3)) should not be affected though. The reason for this regression is that host(1) is now based on the ldns library, which doesn't currently parse the 'options' directive (e.g. see [1]). The solution is to add '-w 1' to the list of host(1) options. Or to push the ldns folks to fix this. [1] http://git.nlnetlabs.nl/ldns/tree/resolver.c?id=f328ba0ccc3c0733d0451d5059b50e502206923a#n838