From owner-freebsd-stable@FreeBSD.ORG Fri Jul 30 18:47:58 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94305106566B for ; Fri, 30 Jul 2010 18:47:58 +0000 (UTC) (envelope-from Mark.Lokowich@compellent.com) Received: from mail.compellent.com (mail.compellent.com [76.164.8.134]) by mx1.freebsd.org (Postfix) with ESMTP id 3F40F8FC0C for ; Fri, 30 Jul 2010 18:47:58 +0000 (UTC) Received: from [172.31.100.39] (172.31.100.39) by mail.compellent.com (172.31.0.65) with Microsoft SMTP Server id 8.1.436.0; Fri, 30 Jul 2010 13:37:18 -0500 Message-ID: <4C531BDE.9000207@compellent.com> Date: Fri, 30 Jul 2010 13:37:18 -0500 From: Mark Lokowich User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: freebsd-stable Mailing List Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: resolver refresh X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2010 18:47:58 -0000 I've found that changes to resolv.conf on a 7.2 and 8.0 system are not propagated through the resolver for a running process. If your process needs to query a revised DNS server entry, it must call res_init prior to any gethost* syscalls, or you will get responses from the "stale" server. I've been using the NSS plug-in solution posted in 2006, but it's a hard sell without some community blessing. http://www.mail-archive.com/freebsd-stable@freebsd.org/msg78275.html Can anyone tell me why the resolver behaves this way, if there are plans to change it in a future release, and if the NSS resinit plug-in will be committed to the stable branch? fwiw: Linux (glibc) does NOT behave this way. Thanks, Mark