How to change the Hostname in OpenSuse 11.1?
In previous versions changing the hostname was simple.
You just went into Yast | Network Devices | Network Settings. There you had a tab
called DNS/Hostname and there you could change the hostname and domain name.
By default networkmanager is enabled in OpenSuse, so when you go into Yast you will
get a messages saying you can’t change any properties because networkmanager is controlling them.
So how can we change the hostname than?
Simple, change it with your favorite text editor in the file /etc/HOSTNAME.
Here you can change it in something like pc1.wilmsenit.nl
You have to reboot the pc to apply the changes.
About Michael
Michael Wilmsen is a experienced VMware Architect with more than 20 years in the IT industry. Main focus is VMware vSphere, Horizon View and Hyper Converged with a deep interest into performance and architecture.
Michael is VCDX 210 certified, has been rewarded with the vExpert title from 2011, Nutanix Tech Champion and a Nutanix Platform Professional.
By Willem, June 24, 2009 @ 10:46
Hi Michael,
Although YaST will prompt you when the network manager is being used, the host and domain name are the one thing you still can access and change 😉
Just to spare you the console pain 😛
Cheers,
Wj
By Mike, June 24, 2009 @ 10:49
Your absolutely right! This is just a quick way to do it on the console.
Thanks for you input!
By Willem, June 24, 2009 @ 10:46
Hi Michael,
Although YaST will prompt you when the network manager is being used, the host and domain name are the one thing you still can access and change 😉
Just to spare you the console pain 😛
Cheers,
Wj
By Mike, June 24, 2009 @ 10:49
Your absolutely right! This is just a quick way to do it on the console.
Thanks for you input!