1753867 Members
7226 Online
108809 Solutions
New Discussion юеВ

Re: HOSTNAME vs NODENAME

 
SOLVED
Go to solution
Kim Kendall
Regular Advisor

HOSTNAME vs NODENAME

When doing a uname -a , the second field is the nodename. Where is this variable obtained from?
22 REPLIES 22
Jeff Schussele
Honored Contributor

Re: HOSTNAME vs NODENAME

Hi Kim,

Believe it comes from the HOSTNAME= value in /etc/rc.config.d/netconf.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Kim Kendall
Regular Advisor

Re: HOSTNAME vs NODENAME

nope
Alan Riggs
Honored Contributor
Solution

Re: HOSTNAME vs NODENAME

Nodename is set with the uname -S command. Generally it is kept synchronized with the hostname. To do otherwise creates much opportunity for confusion.
Jeff Schussele
Honored Contributor

Re: HOSTNAME vs NODENAME

OK, I can understand that.
But if it is never explicitly run after base install, is the install itself running the uname -S command?

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Kim Kendall
Regular Advisor

Re: HOSTNAME vs NODENAME

YESSSSSSS !!!!! That was it! Thanks!

Man this Forum ROCKS!
Sanjay_6
Honored Contributor

Re: HOSTNAME vs NODENAME

Hi,

Think you can change the value of "HOSTNAME" in /etc/rc.config.d/netconf and then reboot the system for the change to take effect. uname -S will make the change effective immediately.

Hope this helps.

Regds
Jeff Schussele
Honored Contributor

Re: HOSTNAME vs NODENAME

Alan,

Where is it stored?

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: HOSTNAME vs NODENAME

Hi Kim:

Alan is correct. In general, great confusion is avoided by keeping the hostname and the uucp nodename the same.

When you change a server's hostname, the easiest solution is to run:

# /sbin/set_parms hostname

If for some reason you have to have a hostname that differs from the nodename, you can add a line to '/etc/rc.config.d/netconf' like:

NODENAME="mynode"

Regards!

...JRF...
Jeff Schussele
Honored Contributor

Re: HOSTNAME vs NODENAME

OK Jim,
I'd still like to know where the value for nodename is stored.

Thx,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!