1825783 Members
2051 Online
109687 Solutions
New Discussion

Re: cannot set hosname

 
SOLVED
Go to solution
Dario_28
New Member

cannot set hosname

Hi,
I have a workstation running hp-ux b11, and it has the "unknown" hostname. I changed it to another name in the netconfig file, but after rebooting the system the hostname is changed back to "unknown", regardless the netconfig and /etc/hosts files. The same thing happens with the $TERM value, that changes every reboot to "unknown".
Does anyone knows how to solve this??
5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: cannot set hosname

Check that the /sbin/rc1.d/hostname has been run, see in /etc/rc.log
Anyone for a Mutiny ?
Petr Simik_1
Valued Contributor

Re: cannot set hosname

try configure by #set_parms hostname

what does #uname -a sayz?
Muthukumar_5
Honored Contributor

Re: cannot set hosname

Hostname informations are loaded from netconf file and made set by /sbin/init.d/hostname

You can try manually by executing /sbin/init.d/hostname by changing /etc/rc.config.d/netconf file.

Did you get any changes there. And try with /sbin/set_parms command.

See hostname man page for more.
Easy to suggest when don't know about the problem!
Dario_28
New Member

Re: cannot set hosname

Problem Solved. According to the rc.log file, It was a syntax error in the /etc/namesvrs file that was causing the problem.

Thanks to everybody who answered!!
Dario_28
New Member

Re: cannot set hosname

thread closed