1833758 Members
2660 Online
110063 Solutions
New Discussion

unknown hostname

 
jhuihuihi
Contributor

unknown hostname

Dear all,

after rebooting server my hostname become unkwown. what should i do ?

thanks,

Sam
8 REPLIES 8
Jim Mallett
Honored Contributor

Re: unknown hostname

You can start with checking your /etc/rc.config.d/netconf file and looking for the "Hostname" record. Make sure that wasn't changed or removed.

How are you determining it is unknown? Can you ping it from the network? Can you ping it from itself, IP or hostname?

Jim
Hindsight is 20/20
Patrick Wallek
Honored Contributor

Re: unknown hostname

Did you change anything recently? Are you trying to use a hostname that is longer than 8 characters?
PIYUSH D. PATEL
Honored Contributor

Re: unknown hostname

Hi Sam,

#set_parms hostname

HTH,
Piyush
Basheer_2
Trusted Contributor

Re: unknown hostname

Check ur /etc/hosts file
is it corrupted
Michael Tully
Honored Contributor

Re: unknown hostname

What is mentioned in the /etc/rc.log under /sbin/rc1.d/S320hostname start output?

What run-level is your system currently in, sounds to me like it is in single-user mode ...

# who -r
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: unknown hostname

Hi,

Is your server on the network?. hostname is set from /etc/rc.config.d/netconf file. Look at this file and see if "HOSTNAME" has been correctly defined. It should be less than or equal to 8 chars.

Try running

#/sbin/init.d/hostname start

See if it works or post the errors it may give.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
jhuihuihi
Contributor

Re: unknown hostname

Thank for your reply.

I'm running on init 3 (multiuser), can ping to ip server itself and to another server.

the server is running well before, problem happens when i restart the server.
Con O'Kelly
Honored Contributor

Re: unknown hostname

Hi

I'm merely reiterating what the others have said in this post but if you can confirm the following then someone may be able to help further:

1) Is your hostname defined in /etc/rc.config.d./netconf file?
2) Is your hostname set in the /etc/hosts file.
3) Examine your /etc/rc.log file and look for the output under "Output from /sbin/rc1.d/S320hostname start"
4) What does "# hostname" command return?

Cheers
Con