Jump to content

Changing the hostname.


tvlad
 Share

Recommended Posts

I modified /etc/sysconfig/network to change my hostname.It works, but when i start kde, just before entering graphic mode it tells me : host name lookup failure.

 

So, what other files shoud i modify,in order to get rid of that warning.

Link to comment
Share on other sites

did you edit your /etc/host to reflect your new hostname? Otherwise the apps wont identify your ip with your hostname:

 

ie, lets supose that your new hostname is foo.bar.com its LAN IP is 192.168.0.1, then your /etc/hosts should look like:

127.0.0.1       localhost.localdomain   localhost

192.168.0.1     foo.bar.com       foo

 

If you don't have a LAN IP, this will work:

127.0.0.1     localhost.localdomain   localhost

127.0.0.1     foo.bar.com       foo

 

ofcourse run: service network restart

 

HTH

Link to comment
Share on other sites

The thought did cross my mind, but when i checked /etc/hosts it only had this line : 127.0.0.1 localhost

 

So i thought that if i didn't find a line with my ip address and the hostname, i shouldn't have to add one. :D

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...