On Thu, Nov 10, 2016 at 09:01:42AM -0500, Stephen Gallagher wrote:
> On 11/10/2016 08:53 AM, Radek Vykydal wrote:
> > 
> > 
> > On 8.11.2016 22:49, Stephen Gallagher wrote:
> >> For as long as I can recall, Fedora has shipped with a default hostname of
> >> "localhost.localdomain"[1]. This default was "safe" for a very long time 
> >> because
> >> we also shipped an /etc/hosts entry that routed this hostname to the 
> >> loopback
> >> device for the benefit of some older system services (like sendmail).
> > 
> > One aspect worth considering is that localhost.localdomain as installer 
> > default
> > means that if hostname is not set by user (in UI or kickstart), transient
> > hostname of installed system would be automatically set during network
> > configuration (by NM) from dhcp or DNS lookup if available (Formerly 
> > anaconda
> > used to set the installed sytem static hostname to hostname obtained from 
> > dhcp
> > or DNS in installation environment but based on a bug report we stopped 
> > doing it).

I don't know the details for other dhcp implementations, but systemd-networkd
will use the dchp-provided "transient" hostname if the "static" hostname is
unset or set to "localhost". Note that this is done dynamically, i.e. the
hostname from dhcp is never stored in /etc/hostname.

> Sorry, Radek. I can't parse that. It sounds like you said that Anaconda does
> automatically set the hostname and then you say you stopped doing that because
> of a bug report. Which one is true for F25/26?

If those other implementations behave like systemd-networkd, then
Radek's comment makes perfect sense ;)

Zbyszek
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to