Date: Sat, 16 Dec 2000 14:23:27 -0800 From: "Crist J. Clark" <cjclark@reflexnet.net> To: Arcady Genkin <antipode@thpoon.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: aliases for hosts Message-ID: <20001216142327.R96105@149.211.6.64.reflexcom.com> In-Reply-To: <87itokf9x3.fsf@tea.thpoon.com>; from antipode@thpoon.com on Sat, Dec 16, 2000 at 02:22:48PM -0500 References: <87itokf9x3.fsf@tea.thpoon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <other domains> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001216142327.R96105>