Bug 1392925 - Change default advertised hostname to "fedora"
Summary: Change default advertised hostname to "fedora"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1933341
TreeView+ depends on / blocked
 
Reported: 2016-11-08 13:47 UTC by Bastien Nocera
Modified: 2021-02-26 18:52 UTC (History)
10 users (show)

Fixed In Version: systemd-246~rc1-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1933341 (view as bug list)
Environment:
Last Closed: 2020-07-09 08:50:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bastien Nocera 2016-11-08 13:47:45 UTC
It doesn't hurt performance, though it might hurt privacy[1] overriding it is still possible, and it helps with branding recognition.

[1]: information leak which we tried to avoid in Avahi in:
https://bugzilla.redhat.com/show_bug.cgi?id=1105647

Comment 1 Zbigniew Jędrzejewski-Szmek 2016-11-08 16:35:50 UTC
I'm very much in favour. "fedora" is way better than "localhost". I'd even go a step further, and allow the hostname to be customized during installation. Changing the hostname is one of the things that I always do post-installation. Ideally, a suitable default would be provided, with a possibility for the user to override it. "fedora" could be this default.

Comment 2 Bastien Nocera 2016-11-08 17:02:38 UTC
FWIW, I have similar bugs filed against avahi and anaconda:
https://bugzilla.redhat.com/show_bug.cgi?id=1392924
https://bugzilla.redhat.com/show_bug.cgi?id=1392926

Comment 3 Jan Synacek 2016-11-09 07:29:57 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1)
> I'd even go a step further, and allow the hostname to be customized during installation.

Huh? This option has been there for a while.

Comment 4 Mathieu Bridon 2016-11-09 08:57:16 UTC
Related to https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/HRHAKG53Y2G3SFKFXX2FPO3FOUR7NJGA/

Maybe the default hostname could be set to something unique as requested in that thread, but the default **pretty** hostname could be set to just "Fedora" ?

Comment 5 Zbigniew Jędrzejewski-Szmek 2016-11-10 02:09:14 UTC
Maybe. I'm not a big fan of the "pretty hostname" concept myself. We don't display the hostname in places that are visible to the newbie user, just in terminal prompts, logins, logs, and such, and in those places we might just as well use the real hostname.

Comment 6 Zbigniew Jędrzejewski-Szmek 2016-11-10 03:18:49 UTC
Oh, I didn't notice that this is assigned to systemd. Systemd does not determine the hostname. I think the hostname should be changed during installation, and systemd should just duly display what is configured. So imho the job belongs to anaconda.

Comment 7 Zbigniew Jędrzejewski-Szmek 2016-11-10 04:20:44 UTC
(In reply to Jan Synacek from comment #3)
> Huh? This option has been there for a while.
So it does. I wasn't aware.

>  Change default advertised hostname to "fedora" 

Bastien, what exactly are you asking for from systemd?

Comment 8 Jóhann B. Guðmundsson 2016-11-10 16:47:11 UTC
He obviously wants to end up with gazillion hosts that all pretty identify themselves as "Fedora" while everyone else wants to have uniq id to every hosts and machine or device and arguably always want to make the user set this when he installs his OS or even go as far as default all hostname hotspots and what not entries pretty or otherwise to something like the machine-id so they can be reliably differentiated from each other when they log or share something on the network. 

I guess the installer and a plymouth splash screen and the logo in something like details in Gnome is not good enough and obvious branding these days encase users somehow missed that fact when they DOWNLOADED AND INSTALLED FEDORA o_O

Comment 9 Zbigniew Jędrzejewski-Szmek 2016-11-10 19:45:41 UTC
> He obviously wants to end up with gazillion hosts that all pretty identify themselves as "Fedora"

Me too ;)

> everyone else wants to have uniq id to every hosts and machine

That too. Hence currently the proposal being hashed out on the mailing list to use "Fedora-<random-stuff>" as the default hostname upon installation.

In case it wasn't clear, my question is: is there anything to change in systemd to support this?

Comment 10 Bastien Nocera 2016-11-16 13:13:36 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #7)
> (In reply to Jan Synacek from comment #3)
> > Huh? This option has been there for a while.
> So it does. I wasn't aware.
> 
> >  Change default advertised hostname to "fedora" 
> 
> Bastien, what exactly are you asking for from systemd?

That the default fallback hostname be changed from "localhost" to "fedora" on Fedora systems:
https://github.com/systemd/systemd/blob/master/src/hostname/hostnamed.c#L284

(In reply to Jóhann B. Guðmundsson from comment #8)
> He obviously wants to end up with gazillion hosts that all pretty identify
> themselves as "Fedora" 

Jóhann, when you don't know, just don't say anything. It will save us all time.

Comment 11 Zbigniew Jędrzejewski-Szmek 2017-01-28 04:39:24 UTC
https://github.com/systemd/systemd/pull/5175

Comment 12 Fedora End Of Life 2017-02-28 10:34:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 13 Fedora End Of Life 2018-05-03 08:00:34 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 14 Fedora End Of Life 2018-05-29 11:46:31 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
is no longer maintained, which means that it will not receive any
further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 15 Bastien Nocera 2018-05-30 12:22:13 UTC
Fixed in https://github.com/systemd/systemd/pull/5175

Comment 16 Bastien Nocera 2020-06-24 13:49:57 UTC
Reopening, because the fix was never actually implemented in Fedora.

Comment 17 Bastien Nocera 2020-06-24 14:52:01 UTC
https://src.fedoraproject.org/rpms/systemd/pull-request/28 should fix it.

Comment 18 Zbigniew Jędrzejewski-Szmek 2020-06-24 15:01:06 UTC
Though this will only change the systemd default. A change in anaconda would be needed to
make this effective. My suggestion would be simply not create /etc/hostname from anaconda
if the user didn't specify a hostname.

Comment 19 Zbigniew Jędrzejewski-Szmek 2020-07-09 08:50:08 UTC
Built in rawhide.


Note You need to log in before you can comment on or make changes to this bug.