Bug 15508 - Hostname always reverts back to localhost
Summary: Hostname always reverts back to localhost
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-17 14:43 CET by Jude Ashvin Lobo Shenoy
Modified: 2021-01-28 10:32 CET (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Jude Ashvin Lobo Shenoy 2015-03-17 14:43:24 CET
Have tried umpteen times to set a hostname in the hostname file but after an update it reverts back to localhost. This prevents me from using webmin.
Comment 1 David Walser 2015-03-17 21:31:23 CET
This issue is not generally reproducible.  Can you give more details?  Like, what are you updating that's changing the file, for instance.

Keywords: (none) => NEEDINFO
Component: New RPM package request => RPM Packages

Comment 2 Jude Ashvin Lobo Shenoy 2015-03-18 14:26:49 CET
I change the hostname in the hostname file and restart the pc. Sometimes i restart the pc after receiving updates and installing them. Recently i installed Firefox 37 beta from the repo on MCC. after the installation i could not login to webmin so i had to uninstall webmin and reinstall it. Just updated my pc yesterday and suddenly i can't login to webmin as the hostname has changed all by itself.
Comment 3 Jude Ashvin Lobo Shenoy 2015-03-18 14:27:28 CET
(In reply to David Walser from comment #1)
> This issue is not generally reproducible.  Can you give more details?  Like,
> what are you updating that's changing the file, for instance.

I change the hostname in the hostname file and restart the pc. Sometimes i restart the pc after receiving updates and installing them. Recently i installed Firefox 37 beta from the repo on MCC. after the installation i could not login to webmin so i had to uninstall webmin and reinstall it. Just updated my pc yesterday and suddenly i can't login to webmin as the hostname has changed all by itself.
Comment 4 Remco Rijnders 2015-03-19 08:43:07 CET
Hi Jude,

Can you check https://forums.mageia.org/en/viewtopic.php?f=7&t=7298 and see if that solves your problem?

(I agree that silently losing your hostname every time is very annoying)

CC: (none) => remco

Comment 5 Angelo Naselli 2015-03-19 09:06:22 CET
FWIW manahost (adminpanel package) allows to change hostname either into 
/etc/hostname (names pow) or machine name

CC: (none) => anaselli

Comment 6 Jude Ashvin Lobo Shenoy 2015-03-22 10:48:05 CET
Well i followed the link and am ok now. Just a query....Should i add hostname in /etc/hosts?
Comment 7 Jude Ashvin Lobo Shenoy 2015-03-22 10:51:59 CET
Should i add it as follows:
127.0.1.1	wolf

(In the /etc/hosts file). Have already added it in /etc/hostname and /etc/sysconfig/network
Comment 8 Florian Hubold 2015-05-10 23:54:02 CEST
IMHO this is still valid, mainly because we do not make it mandatory in installer or on first boot to ask the user if the hostname should be set [this only happens if you choose automatic network configuration (DHCP) and specify a hostname, which is optional]. This should be done via hostnamectl or manahost, whatever is easier to implement.

See also the proposed mga5 feature 
https://wiki.mageia.org/en/Feature:Add_a_step_in_order_to_choose_computer%27s_name_(installation) and partly bug 12580

Hardware: x86_64 => All
Keywords: NEEDINFO => (none)
CC: (none) => doktor5000

Samuel Verschelde 2015-06-06 15:23:25 CEST

Whiteboard: (none) => MGA5TOO

Marja Van Waes 2016-10-16 22:57:01 CEST

Assignee: bugsquad => mageiatools
CC: (none) => marja11

Matteo Pasotti 2021-01-28 10:32:20 CET

CC: (none) => matteo.pasotti


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