Jump to content

Unable to change hostname [solved]


edwardp
 Share

Recommended Posts

I've also been unable to change the hostname from "localhost".

 

In the Control Center, under Network and Internet/Network Center/Configure (Network Settings), the DHCP host name is set to what I want it to be.

 

Network and Internet/Hosts definitions, it lists IP address 127.0.0.1 and both Host name and Host Aliases show the same host name as in the above setting. Localhost is nowhere to be found.

 

Can it be changed from localhost and if so, am I looking in the wrong place? With Mandriva 2007, this wasn't an issue.

 

Thanks.

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

In the Control Center, under Network and Internet, select "Setup a new network interface" and reconfigure your ethernet connection.

 

You should re-boot after doing this to avoid possible problems.

 

Jim

Edited by jkerr82508
Link to comment
Share on other sites

Another way to save reconfiguration is just edit /etc/sysconfig/network and you will just need a line like:

 

HOSTNAME=myhostname

 

replace myhostname with whatever you want to call it. As you've probably already done it and reconfigured the interface, just take a look at /etc/sysconfig/network and you'll see how it looks if you ever need to do it again in the future.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...