From owner-freebsd-questions Tue Sep 29 19:35:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA04608 for freebsd-questions-outgoing; Tue, 29 Sep 1998 19:35:18 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harmony.williams.edu (harmony.williams.edu [137.165.4.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA04603 for ; Tue, 29 Sep 1998 19:35:17 -0700 (PDT) (envelope-from sachs@bull.cs.williams.edu) Received: from cs.williams.edu (bull.cs.williams.edu) by williams.edu (PMDF V5.1-10 #24595) with SMTP id <0F020074RSIEYC@williams.edu> for questions@freebsd.org; Tue, 29 Sep 1998 22:35:02 -0400 (EDT) Received: from hamburger.cs.williams.edu by cs.williams.edu (SMI-8.6/SMI-SVR4) id WAA12259; Tue, 29 Sep 1998 22:35:02 -0400 Received: (from sachs@localhost) by hamburger.cs.williams.edu (8.8.8/8.8.8) id WAA00308; Tue, 29 Sep 1998 22:35:28 +0000 (GMT) Date: Tue, 29 Sep 1998 22:35:28 +0000 From: Jay Sachs Subject: resolver not "trimming" domains? To: questions@FreeBSD.ORG Message-id: MIME-version: 1.0 (generated by tm-edit 7.108) X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Content-type: text/plain; charset=US-ASCII X-Face: 6!-I&o^[[HP+0~O~}d2Zf@Pbof:|>j5^*W$QOR"&)JYcHT.@-"AhAXLg3vioV79Ri3JMp/a e3QD@Z$1Ot@'j1/A Lines: 30 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The resolv.conf on this machine has solely a nameserver line. The hostname for this machine is set to hamburger.cs.williams.edu in rc.conf. Abbreviated hostname lookups work fine if I search for something in the cs.williams.edu domain, e.g. I can ping dexter successfully because there is a host dexter.cs.williams.edu. But if I try ping colrain I get a hostname lookup failure, even though there is a host colrain.williams.edu (note no "cs"). According to the resolv.conf man page: The search list is normally determined from the local domain name; by default, it begins with the local domain name, then successive parent domains that have at least two components in their names. I get the same behavior if I include a "domain" line in /etc/resolv.conf. I can of course add "search" lines, but I'd rather understand why the resolver doesn't appear to be behaving properly. What am I missing? -jay To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message