Unix Technical Forum

Hostname change problem

This is a discussion on Hostname change problem within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, I had to change the hostname of my AIX 5.2 machine in the DNS. Subsequently, I changed the ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 09:12 AM
Anunay
 
Posts: n/a
Default Hostname change problem

Hello,

I had to change the hostname of my AIX 5.2 machine in the DNS.
Subsequently, I changed the hostname using smit so that we get the new
hostname when using the "hostname" command.

After changing this, the "hostname" command is giving the new hostname,
which is fine. But "uname -a" is still displaying the old hostname. I
cannot reboot my machine for certain reasons. Is there any workaround
possible? Are there any files which if changed manually, will solve
this problem?

Any help will be appreciable.
Thanks in advance,
Anunay

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 09:12 AM
sjm
 
Posts: n/a
Default Re: Hostname change problem

The "uname" of the machine is different from the "hostname" and it is
best to administer AIX via "smit" and not via individual commands and
files.

Use "smit tcpip", "Basic Configuration" and change the name there. This
does not require a reboot.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 09:12 AM
Anunay
 
Posts: n/a
Default Re: Hostname change problem

I changed hostname from the same place u r referring to.
After this, the "hostname" cmd returns the new hostname but the "uname
-a" still displays the old one. I want the uname -a output to be the
same as well.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 09:12 AM
Dan Foster
 
Posts: n/a
Default Re: Hostname change problem

In article <1136288984.074184.136090@g43g2000cwa.googlegroups .com>, Anunay <anunaygupta@gmail.com> wrote:
> I changed hostname from the same place u r referring to.
> After this, the "hostname" cmd returns the new hostname but the "uname
> -a" still displays the old one. I want the uname -a output to be the
> same as well.


# uname -S newhostname

(where it's the short, non-FQDN hostname, not the long one with domain.)

-Dan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 09:12 AM
Anunay
 
Posts: n/a
Default Re: Hostname change problem

Thanks Dan! That was "THE" thing i was looking for!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com