Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* hostname
@ 2007-03-02 14:45 pp
  2007-03-02 17:07 ` hostname Brian Haley
  0 siblings, 1 reply; 2+ messages in thread
From: pp @ 2007-03-02 14:45 UTC (permalink / raw)


Hi,

I am using 5.1A, the hostname shows only the hostname without domain 
name. but in /etc/rc.config file, I have defined
HOSTNAME="abc.domain.com"

#hostname only shows "abc".

Can anyone tell me what makes that issue? and where in the system file I 
can change hostname return abc.domain.com?

Thanks
P


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hostname
  2007-03-02 14:45 hostname pp
@ 2007-03-02 17:07 ` Brian Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Haley @ 2007-03-02 17:07 UTC (permalink / raw)


pp wrote:
> I am using 5.1A, the hostname shows only the hostname without domain 
> name. but in /etc/rc.config file, I have defined
> HOSTNAME="abc.domain.com"
> 
> #hostname only shows "abc".
> 
> Can anyone tell me what makes that issue? and where in the system file I 
> can change hostname return abc.domain.com?

If you've changed /etc/rc.config, but not rebooted or restarted the 
network, then the change hasn't taken affect.  You can simply run:

# hostname abc.domain.com

which will set the hostname on the system.

You might also want to check that hostname isn't an alias for 'hostname -s'.

-Brian


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-02 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 14:45 hostname pp
2007-03-02 17:07 ` hostname Brian Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox