From owner-freebsd-fs@FreeBSD.ORG Thu Sep 22 09:49:49 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3329106564A for ; Thu, 22 Sep 2011 09:49:49 +0000 (UTC) (envelope-from rs@bytecamp.net) Received: from mail.bytecamp.net (mail.bytecamp.net [212.204.60.9]) by mx1.freebsd.org (Postfix) with ESMTP id 193DE8FC08 for ; Thu, 22 Sep 2011 09:49:48 +0000 (UTC) Received: (qmail 51783 invoked by uid 89); 22 Sep 2011 11:49:47 +0200 Received: from stella.bytecamp.net (HELO ?212.204.60.37?) (rs%bytecamp.net@212.204.60.37) by mail.bytecamp.net with CAMELLIA256-SHA encrypted SMTP; 22 Sep 2011 11:49:47 +0200 Message-ID: <4E7B04BB.2010808@bytecamp.net> Date: Thu, 22 Sep 2011 11:49:47 +0200 From: Robert Schulze Organization: bytecamp GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <373396436.1795807.1316649054817.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <373396436.1795807.1316649054817.JavaMail.root@erie.cs.uoguelph.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: NFS umount takes ages when no DNS available X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 09:49:49 -0000 Hi, first of all: thanks to your answers. Am 22.09.2011 01:50, schrieb Rick Macklem: >> > Well, here is the code snippet. (I'm not sure why the author felt that > the getaddinfo() needed to be done before the check for the need to do > an rpc?): > [...] > > These protocols were done in the days when servers would have been in > /etc/host files, so the names always resolved. (mid to late 1980s) this all would make sense (at least to me) when using hostnames. But I don't use them anywhere on the server or client regarding NFS. Furthermore a getaddrinfo() with numeric ip address should return instantly, or is it supposed to do a reverse lookup? The addresses we use for NFS are in the 10.x.y.z/24 range which are not declared in our nameservers, so the client will get NXDOMAIN for the address. Regarding the hostname which statd complains with: I've looked into the sources of /usr/sbin/rpc.statd and found out one place, where a gethostname() is called, but I can't figure out whether this value is also handed out over the wire or just for logging purposes. When looking at a multihomed setup like we use it (external public ip address for non-nfs and internal local address for nfs-only) the hostname of the machine is true for the external interface only. with kind regards, Robert Schulze