From owner-freebsd-questions Sat Dec 16 14:23:31 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 16 14:23:29 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id AD4D137B400 for ; Sat, 16 Dec 2000 14:23:29 -0800 (PST) Received: from rfx-64-6-211-149.users.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sat, 16 Dec 2000 14:21:52 -0800 Received: (from cjc@localhost) by rfx-64-6-211-149.users.reflexcom.com (8.11.0/8.11.0) id eBGMNRf88095; Sat, 16 Dec 2000 14:23:27 -0800 (PST) (envelope-from cjc) Date: Sat, 16 Dec 2000 14:23:27 -0800 From: "Crist J. Clark" To: Arcady Genkin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: aliases for hosts Message-ID: <20001216142327.R96105@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <87itokf9x3.fsf@tea.thpoon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <87itokf9x3.fsf@tea.thpoon.com>; from antipode@thpoon.com on Sat, Dec 16, 2000 at 02:22:48PM -0500 Sender: cjc@rfx-64-6-211-149.users.reflexcom.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Dec 16, 2000 at 02:22:48PM -0500, Arcady Genkin wrote: > /etc/hosts lets me define an alias to an IP address. > > Is there any way to define an alias in such a way that DNS lookup > *would* be performed, but only on an expanded name of the host? > > For example, I'd like to alias `cdf.utoronto.ca' to `cdf', without > having to enter its IP address (which can theoretically change) into > /etc/hosts. Are you saying you want your resolver to know to try, host.utoronto.ca When you just enter, host Add to your /etc/resolv.conf, search utoronto.ca nameserver ... That is, add the domain to your "search path." See resolv.conf(5) for details. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message