Operating System - HP-UX
1831338 Members
3028 Online
110024 Solutions
New Discussion

HostName Change Not Working

 
daniel figueroa
Occasional Advisor

HostName Change Not Working

Help Please:

I've tried everything, I know of -

1) set_parms hostname
2) edit /etc/hosts/ & /etc/rc.config.d/netconf

to get the computer name to change, but the old name keeps coming back to haunt me, aghh!

I've rebooted after the changes as well. At first after change the /etc files above, a hostname comes back with the correct name. If I reboot or use swinstall to point to a software source (cdrom in this case)it tells me it can not resolve the hostname. The hostname being the old one.

YouR help Please.
Dan
6 REPLIES 6
daniel figueroa
Occasional Advisor

Re: HostName Change Not Working

BTW: HPUX 10.20
Sridhar Bhaskarla
Honored Contributor

Re: HostName Change Not Working

Dan -

Did you put the backup copy of your old netconf file in /etc/rc.config.d itself?. If so, move it to some other directory. Only one netconf file should be in there. No backups.

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

Re: HostName Change Not Working

check the following files as well.

/etc/resolv.conf
/etc/nsswitch.conf

make sure you can reolve the name properly before next reboot.

restart swagentd

"Vision, is the art of seeing the invisible"
daniel figueroa
Occasional Advisor

Re: HostName Change Not Working

Thanks so much. I had a file in /etc/rc.config.d/ called netconfx, which I moved and this resolved my prob.

Question: is this netconfx file created as a backup when you run set_parms hostname?

Dan
Sridhar Bhaskarla
Honored Contributor

Re: HostName Change Not Working

Nop. It doesn't. Looks like someone might have created it as a backup.

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

Re: HostName Change Not Working

Mystery files (typically backup copies) are a common problem in the /etc/rc.config.d directory. When the system boots up, *every* file in that directory is executed. Never keep old copies of config files in this directory.


Bill Hassell, sysadmin