Skip to main content

How to permanantlypermanently change hostname in Fedora 21

added 125 characters in body
Source Link
PythonNut
  • 1.5k
  • 3
  • 14
  • 19

I've heard that changing the hostname in new versions of fedora is done with the hostnamectl command. In addition, I recently (and successfully) changed my hostname on Arch Linux with this method. However, when running:

[root@localhost ~]# hostnamectl set-hostname --static paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --transient paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --pretty paragon.localdomain

The changes are not preserved after a reboot (contrary to many people's claims that it does). What is wrong?

  • I really don't want to edit /etc/hostname manually.

I should also note that this is a completely stock fedora. I haven't even gotten around to installing my core apps yet.

I've heard that changing the hostname in new versions of fedora is done with the hostnamectl command. In addition, I recently (and successfully) changed my hostname on Arch Linux with this method. However, when running:

[root@localhost ~]# hostnamectl set-hostname --static paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --transient paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --pretty paragon.localdomain

The changes are not preserved after a reboot (contrary to many people's claims that it does). What is wrong?

  • I really don't want to edit /etc/hostname manually.

I've heard that changing the hostname in new versions of fedora is done with the hostnamectl command. In addition, I recently (and successfully) changed my hostname on Arch Linux with this method. However, when running:

[root@localhost ~]# hostnamectl set-hostname --static paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --transient paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --pretty paragon.localdomain

The changes are not preserved after a reboot (contrary to many people's claims that it does). What is wrong?

  • I really don't want to edit /etc/hostname manually.

I should also note that this is a completely stock fedora. I haven't even gotten around to installing my core apps yet.

Source Link
PythonNut
  • 1.5k
  • 3
  • 14
  • 19

How to permanantly change hostname in Fedora 21

I've heard that changing the hostname in new versions of fedora is done with the hostnamectl command. In addition, I recently (and successfully) changed my hostname on Arch Linux with this method. However, when running:

[root@localhost ~]# hostnamectl set-hostname --static paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --transient paragon.localdomain
[root@localhost ~]# hostnamectl set-hostname --pretty paragon.localdomain

The changes are not preserved after a reboot (contrary to many people's claims that it does). What is wrong?

  • I really don't want to edit /etc/hostname manually.