[6007] in Athena Bugs

home help back first fref pref prev next nref lref last post

RT 7.1*: HOSTALIASES feature

daemon@ATHENA.MIT.EDU (Henry Mensch)
Tue Sep 11 15:19:32 1990

Date: Tue, 11 Sep 90 15:19:18 -0400
From: henry@GARP.MIT.EDU (Henry Mensch)
To: bugs@ATHENA.MIT.EDU
Reply-To: henry@GARP.MIT.EDU


we seem to have this on the RT but it isn't documented.  why?

Resent-Date: Fri, 07 Sep 90 16:59:38 -0700
Resent-To: bind@ucbarpa.Berkeley.EDU
Resent-From: bind-request@ucbarpa.Berkeley.EDU
Sender: bind-request@ucbarpa.Berkeley.EDU
To: bzs@cs.bu.edu (Barry Shein)
Cc: scs@hela.iti.org, bind@ucbarpa.Berkeley.EDU
Subject: Re: Is this legal? 
In-Reply-To: Your message of Fri, 07 Sep 90 18:26:41 EDT.
             <9009072226.AA24802@cs.bu.edu> 
Date: Fri, 07 Sep 90 16:59:38 -0700
From: davy@itstd.sri.com
Precedence: bulk


     From:  bzs@cs.bu.edu (Barry Shein)
     Date:  Fri, 7 Sep 90 18:26:41 -0400
     Subject:  Is this legal?

     Didn't happen, but it probably should. Gethostbyname() etc should look
     for something like /etc/host.alias then ~/host.alias then resolve the
     result. They should be symbolic:
     
At least with the resolver routines I'm using ("stock" BIND 4.8.1 --
see res/res_query.c), each user can set the environment variable
HOSTALIASES to be the path to a file full of aliases.

For example, I have "setenv HOSTALIASES ~/.hostaliases" in my .cshrc,
and the .hostaliases file contains:

ea		ea.ecn.purdue.edu
ei		ei.ecn.purdue.edu
el		el.ecn.purdue.edu
en		en.ecn.purdue.edu
harbor		harbor.ecn.purdue.edu
orchestra	orchestra.ecn.purdue.edu
icarus		icarus.riacs.edu
solstice	solstice.riacs.edu

Now, from intrepid.itstd.sri.com (or whatever), saying "rlogin ea"
takes me to ea.ecn.purdue.edu.  The names don't have to match; I could
use "foo" in place of "ea" just as well.

Beats me if this works with YP/NIS and the name server; the first
thing I do when installing SunOS is rip out the YP gethostby* routines
and replace them with the BIND versions.

Dave Curry
SRI International


home help back first fref pref prev next nref lref last post