On Fri, 15 May 1998, Bob Hilliard wrote:

> > /etc/hostinfo file which contains names,  ip addresses,  and domain names
> 
>      This sounds worthwhile, if we can figure out how to make _all_
> programs use it.  Where does /bin/hostname get the domain name when
> run with the -f or -d options?  I recently changed my domain name, and
> had to edit at least 13 files.  I don't know which one made hostname
> give the right answer.

Maybe a hostname.so -- require that programs call get_host_name() to
figure out what host this is.  We could similarly support
get_domain_name() (or get_domain_names() for hosts with more than one),
get_mail_name(),  etc ...
                                                        Will


--------------------------------------------------------------------------
|             [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]           |
|                       http://www.cis.udel.edu/~lowe/                   |
|    PGP Public Key:  http://www.cis.udel.edu/~lowe/index.html#pgpkey    |
--------------------------------------------------------------------------
|           You think you're so smart,  but I've seen you naked          |
|                  and I'll prob'ly see you naked again ...              |
|                 --The Barenaked Ladies,  "Blame It On Me"              |
--------------------------------------------------------------------------


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to