Re: nss_myhostname as default in Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/01/16 19:43 -0800, Andrew Lutomirski wrote:
> I think that the "gateway" override should not be conflated with
> always letting the gethostname(2) return value resolve.
> 
> I also think that the whole gethostname(2) mechanism is terminally
> screwed up.  We abuse the hostname for multiple purposes:
> 
> 1. It shows up in the default bash prompt.
> 2. It gets sent to remote DHCP servers.  I think this is a mistake on
> desktop machines.
> 3. Some programs seem to thing that gethostbyname(gethostname())
> should return some reasonable concept of "my ip address" despite the
> general nonexistence of such a concept.
> 
> I'll propose a strawman:
> 
>  - gethostname(2) always returns "localhost".
> 
>  - "localhost" always resolves to 127.0.0.1 or ::1

attempt on settle this one down: http://tools.ietf.org/html/rfc6761
(also filed https://bugzilla.redhat.com/show_bug.cgi?id=975856)

>  - bash learns to use some intelligent value derived from whatever
> hostnamectl would return
> 
>  - the default DHCP clients send a client identifier that's a function
> only of the MAC address used to send the query
> 
>  - Whatever systemd magic special-cases "localhost" as "trust what
> DHCP says" goes away.
> 
> and that's it.

-- 
Jan (Poki)

Attachment: pgp4n3v4px_tV.pgp
Description: PGP signature

--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux