top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to change hostname of Fedora 20

+1 vote
762 views

I changed the value in /etc/hostname but it did not see changes in my hostname. What could be the correct way to achieve this.

posted Mar 20, 2014 by Mandeep Sehgal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Use hostnamectl and check this link to  figure out how to use hostnamectl:

http://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/s1_Using_Hostnamectl.html

2 Answers

+1 vote

The proper command is hostnamectl, hope this helps.

answer Mar 20, 2014 by Sumit Pokharna
0 votes

Use This Command
hostnamectl set-hostname

answer Mar 20, 2014 by Atif
Similar Questions
+1 vote

I currently have a problem with hostname and fqdn.
I use:

# cat /etc/redhat-release ; uname -r
CentOS release 6.4 (Final)
2.6.32-358.11.1.el6.centos.plus.x86_64

# hostname
srv1.devel.test.com

# grep HOSTNAME /etc/sysconfig/network
HOSTNAME=srv1.devel.test.com

# cat /etc/hostname
srv1

# cat /etc/domainname
devel.test.com

but

# hostname --fqdn
devel.test.com

As I think it should give: srv1.devel.test.com. Have you got similar problem? Any hint how to solve it?

+1 vote

I am currently running RHEL 6.5 on a 64-bit laptop, and installed a new fedora 20 VM using the Virtual Machine Manager -- seemed to work fine, f20 came up, looks good, but now i want to shut it down, so from the f20 console, I selected "Virtual Machine" -> "Shut Down" -> "Shut Down".

Where it *looks* like the VM shuts down, but the VMM window shows "f20 Running"

Should I expect a different result? I was expecting the VMM window to show that that VM was Stopped or something.

+1 vote
...