[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in hostname
From: |
Paul Jarc |
Subject: |
Re: bug in hostname |
Date: |
Fri, 23 Jan 2004 12:59:58 -0500 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
Jim Meyering <address@hidden> wrote:
> Bruno Haible <address@hidden> wrote:
>> - whether there is a semantic difference between the first hostname and
>> the other ones ("aliases")?
A hostname program does not need to talk to the network at all. The
kernel keeps exactly one hostname in memory, and the hostname program
gets/sets it via gethostname()/sethostname(). It's fine to also
provide access to any names found in DNS, but that isn't central.
When it comes to DNS, there can be multiple names, but there need not
be any "primary" name among them. There can be, and often is, but
it's also possible that all may have equal standing. If all you have
to start with is an IP address, though, then you're probably only
going to find one name from there anyway.
> If it's useful to provide the other names, then hostname should do
> that with a new (long-named) option.
Agree.
>> - why some programs expect IP addresses with brackets and some don't?
Unless both kinds of programs invoke "hostname -i", we don't need to
care about that.
paul
- Re: bug in hostname, (continued)
- Re: bug in hostname, Jim Meyering, 2004/01/17
- Re: bug in hostname, Bruno Haible, 2004/01/18
- Re: bug in hostname, Jim Meyering, 2004/01/21
- Re: bug in hostname, Bruno Haible, 2004/01/21
- Re: bug in hostname, Jim Meyering, 2004/01/21
- Re: bug in hostname, Bob Proulx, 2004/01/23
- Re: bug in hostname, Jim Meyering, 2004/01/23
- Re: bug in hostname, Bruno Haible, 2004/01/23
- Re: bug in hostname, Jim Meyering, 2004/01/23
- Re: bug in hostname, Bruno Haible, 2004/01/23
- Re: bug in hostname,
Paul Jarc <=
- Re: bug in hostname, Bob Proulx, 2004/01/24
- Re: bug in hostname, Paul Jarc, 2004/01/24
- Re: bug in hostname, Bruno Haible, 2004/01/25
- Re: bug in hostname, Paul Jarc, 2004/01/25