Networking Forums

Networking Forums > Computer Networking > Linux Networking > Hostname change

Reply
Thread Tools Display Modes

Hostname change

 
 
G2
Guest
Posts: n/a

 
      12-08-2003, 07:20 AM
Hello,
I have been trying to change the hostname on my Red Hat 9 system.
I've read all the various suggestions (they don't all agree which
is confusing) and tried the suggestion that said start
redhat-config-network and click on the DNS tab and put the new hostmane
there. BTW I trying to use hostname peopled. I now get the following
message box when I log on to the system;

"Could not look up internet address for peopled. This will prevent GNOME
from operating correctly. It may be possible to correct the problem by
adding peopled to the /etc/hosts." Then I can choose a buttom of either
"logon anyway" or "try later" (this wording may not be exact).

I logon anyway and everything seems to work (well so far).
I know it sounds like the solution was already given to me but I'm using
DHCP to connect to my router so I have no idea what I'd put in the host
file to satisfy the message. Someone out there must have solved this
problem. But though I've looked I can't seem to find the answer anywhere.
So please help this newbee. Thanks in advance.
Regards,
Gtoo

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      12-08-2003, 07:33 AM
On Mon, 08 Dec 2003 08:20:47 GMT, G2 wrote:
> Hello,
> I have been trying to change the hostname on my Red Hat 9 system.
> I've read all the various suggestions (they don't all agree which
> is confusing) and tried the suggestion that said start


maybe in /etc/sysconfig/network
HOSTNAME=wb.home
NETWORKING=yes
GATEWAY=192.168.1.1
GATEWAYDEV=eth0
 
Reply With Quote
 
Neil Horman
Guest
Posts: n/a

 
      12-08-2003, 12:19 PM
G2 wrote:
> Hello,
> I have been trying to change the hostname on my Red Hat 9 system.
> I've read all the various suggestions (they don't all agree which
> is confusing) and tried the suggestion that said start
> redhat-config-network and click on the DNS tab and put the new hostmane
> there. BTW I trying to use hostname peopled. I now get the following
> message box when I log on to the system;
>
> "Could not look up internet address for peopled. This will prevent GNOME
> from operating correctly. It may be possible to correct the problem by
> adding peopled to the /etc/hosts." Then I can choose a buttom of either
> "logon anyway" or "try later" (this wording may not be exact).
>
> I logon anyway and everything seems to work (well so far).
> I know it sounds like the solution was already given to me but I'm using
> DHCP to connect to my router so I have no idea what I'd put in the host
> file to satisfy the message. Someone out there must have solved this
> problem. But though I've looked I can't seem to find the answer anywhere.
> So please help this newbee. Thanks in advance.
> Regards,
> Gtoo
>


In /etc/hosts:
127.0.0.1 peopled

This will remove the gnome error on boot up (and probably improve system
performace while in X).
--
/************************************************** *
*Neil Horman
*Software Engineer
*Red Hat, Inc., http://people.redhat.com/nhorman
*gpg keyid: 1024D / 0x92A74FA1
*http://www.keyserver.net
************************************************** */

 
Reply With Quote
 
Doug Laidlaw
Guest
Posts: n/a

 
      12-08-2003, 01:36 PM
G2 wrote:

> Hello,
> I have been trying to change the hostname on my Red Hat 9 system.
> I've read all the various suggestions (they don't all agree which
> is confusing) and tried the suggestion that said start
> redhat-config-network and click on the DNS tab and put the new hostmane
> there. BTW I trying to use hostname peopled. I now get the following
> message box when I log on to the system;
>
> "Could not look up internet address for peopled. This will prevent GNOME
> from operating correctly. It may be possible to correct the problem by
> adding peopled to the /etc/hosts." Then I can choose a buttom of either
> "logon anyway" or "try later" (this wording may not be exact).
>
> I logon anyway and everything seems to work (well so far).
> I know it sounds like the solution was already given to me but I'm using
> DHCP to connect to my router so I have no idea what I'd put in the host
> file to satisfy the message. Someone out there must have solved this
> problem. But though I've looked I can't seem to find the answer anywhere.
> So please help this newbee. Thanks in advance.
> Regards,
> Gtoo


I am using Mandrake, but I think that RH is the same. Debian has a file
/etc/hostname, and you change the hostname there. Mandrake and RH only
have /etc/hosts. I use linuxconf to effect the change, and I also add the
entry in /etc/hosts as Neil suggests. Linuxconf changes the config file
(whatever it is,) and the entry in /etc/hosts means that Gnome will realize
that "peopled" means this computer, not one "out there." I keep the line
"localhost" in /etc/hosts, which is used by Webmin, MySQL, etc. Just add a
second line -or rather, I put the new one first. You will need to reboot:
linuxconf will prompt you for this. But it sounds as though the actual
change is taken care of.

Hope this explains what happens.

Doug.
--
The place to improve the world is first in one's own heart and head and
hands.
- Robert M. Persig

 
Reply With Quote
 
H. S.
Guest
Posts: n/a

 
      12-08-2003, 03:54 PM
G2 wrote:
> Hello,
> I have been trying to change the hostname on my Red Hat 9 system.
> I've read all the various suggestions (they don't all agree which
> is confusing) and tried the suggestion that said start
> redhat-config-network and click on the DNS tab and put the new hostmane
> there. BTW I trying to use hostname peopled. I now get the following
> message box when I log on to the system;


I had a similar problem a while ago. My solutions was posted in
linux.redhat and comp.os.linux.networking. I did a GoogleGroups search
and for some weird reason, I get only one message as a result:
http://groups.google.ca/groups?q=hos...bal.com&rnum=1

I searched for:
hostname redhat hosts author:H. author:S. "Hostname problem"

If you were look in tha above groups around that date you should see the
post:
From: H. S. ((E-Mail Removed))
Subject: SOLVED: Hostname problem too. Was Re: peculiar problem: ping
works, but cannot browse. Need help of network gurus.
Newsgroups: comp.os.linux.networking, linux.redhat
Date: 2003-07-26 01:29:59 PST




>
> "Could not look up internet address for peopled. This will prevent GNOME
> from operating correctly. It may be possible to correct the problem by
> adding peopled to the /etc/hosts." Then I can choose a buttom of either
> "logon anyway" or "try later" (this wording may not be exact).


That will also go away, I think you need to change the /etc/hosts file
with the proper format. Presently ( I am running Debian), mine starts with:
127.0.0.1 localhost
192.168.0.1 force.home.pvt force

with the hostname of force.

HTH,
->HS




--
(Please remove all underscores from my email address to get the correct
one. Apologies for the inconvenience, but this is to reduce spam.)

 
Reply With Quote
 
G2
Guest
Posts: n/a

 
      12-09-2003, 02:19 PM
On Mon, 08 Dec 2003 08:19:32 -0500, Neil Horman wrote:

> G2 wrote:
>> Hello,
>> I have been trying to change the hostname on my Red Hat 9 system.
>> I've read all the various suggestions (they don't all agree which
>> is confusing) and tried the suggestion that said start
>> redhat-config-network and click on the DNS tab and put the new hostmane
>> there. BTW I trying to use hostname peopled.
>>

>
> In /etc/hosts:
> 127.0.0.1 peopled
>
> This will remove the gnome error on boot up (and probably improve system
> performace while in X).

Here is one of the things that is very confusing.
I've seen your suggestion before. Usually followed by at least one person
saying NEVER change the "127.0.0.1 localhost.localdomain localhost" line.
Since some poeple have done it, I can only assume that it works but others
indicate that you'll mess up other programs that depend on the 127.0.0.1
loopback address.
I believe that when I send this back to the news group, and if enough people
read this, I'll get both answers. And everyone will declare there point of view
MUST be correct.
Like I said, very confusing for use new bees.
Regards,
Gtoo

 
Reply With Quote
 
Neil Horman
Guest
Posts: n/a

 
      12-09-2003, 02:32 PM
G2 wrote:
> On Mon, 08 Dec 2003 08:19:32 -0500, Neil Horman wrote:
>
>
>>G2 wrote:
>>
>>>Hello,
>>>I have been trying to change the hostname on my Red Hat 9 system.
>>>I've read all the various suggestions (they don't all agree which
>>>is confusing) and tried the suggestion that said start
>>>redhat-config-network and click on the DNS tab and put the new hostmane
>>>there. BTW I trying to use hostname peopled.
>>>

>>
>>In /etc/hosts:
>>127.0.0.1 peopled
>>
>>This will remove the gnome error on boot up (and probably improve system
>> performace while in X).

>
> Here is one of the things that is very confusing.
> I've seen your suggestion before. Usually followed by at least one person
> saying NEVER change the "127.0.0.1 localhost.localdomain localhost" line.
> Since some poeple have done it, I can only assume that it works but others
> indicate that you'll mess up other programs that depend on the 127.0.0.1
> loopback address.
> I believe that when I send this back to the news group, and if enough people
> read this, I'll get both answers. And everyone will declare there point of view
> MUST be correct.
> Like I said, very confusing for use new bees.
> Regards,
> Gtoo
>

I'm sorry, I didn't mean to imply that you should remove the localhost
line from /etc/hosts. Instead, you should add peopled as an alias to
the same line, i.e.:
127.0.0.1 localhost.localdomain localhost peopled

Sorry, should have been more clear.
Neil

--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net

 
Reply With Quote
 
G2
Guest
Posts: n/a

 
      12-09-2003, 02:37 PM
On Mon, 08 Dec 2003 11:54:55 -0500, H. S. wrote:

> G2 wrote:
>> Hello,
>> I have been trying to change the hostname on my Red Hat 9 system.
>> I've read all the various suggestions (they don't all agree which
>> is confusing) and tried the suggestion that said start
>> redhat-config-network and click on the DNS tab and put the new hostmane
>> there. BTW I trying to use hostname peopled. I now get the following
>> message box when I log on to the system;

>
> I had a similar problem a while ago. My solutions was posted in
> linux.redhat and comp.os.linux.networking. I did a GoogleGroups search
> and for some weird reason, I get only one message as a result:
> http://groups.google.ca/groups?q=hos...bal.com&rnum=1
>
> I searched for:
> hostname redhat hosts author:H. author:S. "Hostname problem"
>
> If you were look in tha above groups around that date you should see the
> post:
> From: H. S. ((E-Mail Removed))
> Subject: SOLVED: Hostname problem too. Was Re: peculiar problem: ping
> works, but cannot browse. Need help of network gurus.
> Newsgroups: comp.os.linux.networking, linux.redhat
> Date: 2003-07-26 01:29:59 PST


>>
>> "Could not look up internet address for peopled. This will prevent GNOME
>> from operating correctly. It may be possible to correct the problem by
>> adding peopled to the /etc/hosts." Then I can choose a buttom of either
>> "logon anyway" or "try later" (this wording may not be exact).

>
> That will also go away, I think you need to change the /etc/hosts file
> with the proper format. Presently ( I am running Debian), mine starts with:
> 127.0.0.1 localhost
> 192.168.0.1 force.home.pvt force
>
> with the hostname of force.
>
> HTH,
> ->HS

Thanks for the reply. While I like your suggestion, my problem is that I'm using DHCP
so I can't use a hard coded ip#. It could all (ip#)change tomorrow. Though I did see
someone suggest setting up an entry that looked like: "127.0.0.2 hostname".
I didn't try this because of other suggestion. But maybe that's the answer.
Regards,
Gtoo

 
Reply With Quote
 
G2
Guest
Posts: n/a

 
      12-09-2003, 04:16 PM
On Tue, 09 Dec 2003 10:32:49 -0500, Neil Horman wrote:

> G2 wrote:
>> On Mon, 08 Dec 2003 08:19:32 -0500, Neil Horman wrote:
>>
>>
>>>G2 wrote:
>>>
>>>>Hello,
>>>>I have been trying to change the hostname on my Red Hat 9 system.
>>>>I've read all the various suggestions (they don't all agree which
>>>>is confusing) and tried the suggestion that said start
>>>>redhat-config-network and click on the DNS tab and put the new hostmane
>>>>there. BTW I trying to use hostname peopled.
>>>>
>>>
>>>In /etc/hosts:
>>>127.0.0.1 peopled
>>>
>>>This will remove the gnome error on boot up (and probably improve system
>>> performace while in X).

>>
>> Here is one of the things that is very confusing.
>> I've seen your suggestion before. Usually followed by at least one person
>> saying NEVER change the "127.0.0.1 localhost.localdomain localhost" line.
>> Since some poeple have done it, I can only assume that it works but others
>> indicate that you'll mess up other programs that depend on the 127.0.0.1
>> loopback address.
>> I believe that when I send this back to the news group, and if enough people
>> read this, I'll get both answers. And everyone will declare there point of view
>> MUST be correct.
>> Like I said, very confusing for use new bees.
>> Regards,
>> Gtoo
>>

> I'm sorry, I didn't mean to imply that you should remove the localhost
> line from /etc/hosts. Instead, you should add peopled as an alias to
> the same line, i.e.:
> 127.0.0.1 localhost.localdomain localhost peopled
>
> Sorry, should have been more clear.
> Neil

Well don't I feel stupid. I was all ready to say I've actually tried putting the
hostname at the end of the 127 line when I decided to verify that it was still there.
And lo and behold I see I've mis-spelled my hostname.
So I make the correction to the spelling, logout and back in and no message.
While feeling dumb, I thank you, I thank you, I thank you!
This has been a pain in my side for weeks and you helped get me through it.
I very much appreciate your help and all those who responded to my problem.
Regards,
Gtoo

 
Reply With Quote
 
Vincent Aaron
Guest
Posts: n/a

 
      12-18-2003, 02:28 PM
Hi all
As I remenber the only wait to change the hostname of a linux box is in
/etc/sysconfig/network file


Cheers
Vincent

"G2" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> On Mon, 08 Dec 2003 08:19:32 -0500, Neil Horman wrote:
>
> > G2 wrote:
> >> Hello,
> >> I have been trying to change the hostname on my Red Hat 9 system.
> >> I've read all the various suggestions (they don't all agree which
> >> is confusing) and tried the suggestion that said start
> >> redhat-config-network and click on the DNS tab and put the new hostmane
> >> there. BTW I trying to use hostname peopled.
> >>

> >
> > In /etc/hosts:
> > 127.0.0.1 peopled
> >
> > This will remove the gnome error on boot up (and probably improve system
> > performace while in X).

> Here is one of the things that is very confusing.
> I've seen your suggestion before. Usually followed by at least one person
> saying NEVER change the "127.0.0.1 localhost.localdomain localhost" line.
> Since some poeple have done it, I can only assume that it works but others
> indicate that you'll mess up other programs that depend on the 127.0.0.1
> loopback address.
> I believe that when I send this back to the news group, and if enough

people
> read this, I'll get both answers. And everyone will declare there point of

view
> MUST be correct.
> Like I said, very confusing for use new bees.
> Regards,
> Gtoo
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the hostname in linux guddu Linux Networking 3 06-23-2008 12:24 PM
How to change hostname on a Server 2003? Per Windows Networking 1 05-05-2004 03:42 PM
change hostname faeychild Linux Networking 9 11-01-2003 03:10 PM
Can't change the f*@&#ing hostname in RedHat 9 Tron Thomas Linux Networking 2 08-10-2003 11:41 PM
Re: How to change hostname? Xyerp Linux Networking 0 07-04-2003 09:17 AM



1 2 3 4 5 6 7 8 9 10 11