Operating System - HP-UX
1837835 Members
2357 Online
110121 Solutions
New Discussion

Re: Hostname Fails on boot

 
David McCallum
Occasional Advisor

Hostname Fails on boot

I have changed the hostname of my workstation in the /etc/rc.config.rc/netconf file and when I have changed the name in the host file as well. I reboot the server hostname fails and I'm unable to login into CDE. I can do a nslookup hostname and ip address which come back fine.I can get into CDE in failsafe mode. What else should be modified to accept the hostname change? The system is 715 workstation running 10.20.
Hello world!
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Hostname Fails on boot

Hi David:

I suggest that you do a '/sbin/set_parms hostname' as root. This will make the changes for you.
If it ain't broke, I can fix that.
S.K. Chan
Honored Contributor

Re: Hostname Fails on boot

Just checking ..
When you changed netconf file in /etc/rc.config.d did you make a backup copy of the older file and leave it in /ec/rc.config.d ? If you do then this may be causing the hostname failed. Move that file to elsewhere.
Bill Hassell
Honored Contributor

Re: Hostname Fails on boot

Is the new hostname longer than 8 characters, or is it fully qualified hostname? If so, you need to set the hostname and the nodename. hostname corresponds top the network name (fully qualified or not) and nodename is for hte old uname value. To set uname and hostname values, edit the file /etc/rc.config.d/netconf and add the line:

NODENAME=8-characters-or-less


Bill Hassell, sysadmin
Sanjay_6
Honored Contributor

Re: Hostname Fails on boot

Hi David,

Use "/sbin/set_parms hostname" to modify the hostname.

Hope this helps.

Regds
Wodisch
Honored Contributor

Re: Hostname Fails on boot

Hello David,

when exactly do you get that error? Please tell the name of the "/sbin/rc?.d/S*" scripts that run successfully, and the one that did not.

Perhaps you have an invalid character in that name (like a german umlaut, or a french or spanish accented character)?

Just my $0.02,
Wodisch
harry d brown jr
Honored Contributor

Re: Hostname Fails on boot

are you getting your IP via DHCP?

live free or die
harry
Live Free or Die