Unix Technical Forum

hostname config question

This is a discussion on hostname config question within the AIX Operating System forums, part of the Unix Operating Systems category; --> My systems use the unqualified host name as 'hostname' -- so the 'hostname' command returns 'box' and not 'box.foo.com'. ...


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, 06:43 AM
TomK
 
Posts: n/a
Default hostname config question

My systems use the unqualified host name as 'hostname' -- so the
'hostname' command returns 'box' and not 'box.foo.com'. I don't remember
WHY I set them up this way - IIRC, it was SAP, HACMP, or PSSP on the SP
frame that required hostname be the 'shortname' AND eight or fewer
characters (this was lat '96, early '97, AIX 4.1, SAP/R3 3.6, HACMP 2.1,
and God only knows which HACMP version).

We're now trying to install some awfull java-based functionality for SAP
and it fails -- can't connect to 'box'. If we change to a fully qualified
hostname, it seems to work. It looks like it does a lookup on 'box', gets
1.2.3.4, does a reverse on 1.2.3.4 and gets 'box.foo.com' and says this
isn't 'box'.

I can't seem to find a reference to 'shortname' anywhere, and I'm
wondering how big a can of worms we'll need to re-can if we start changing
the hostname across our production landscape.

What am I missing here? Am I between the proverbial rock and hard place?

We're on AIX 5.1 ML 4, HACMP/ES 4.5.1, SAP 4.6, and no longer an SP
environment.

Oh, and for what it's worth, SAP indicates that hostname needs to be fully
qualified . . .

Tom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 06:43 AM
JSimth
 
Posts: n/a
Default Re: hostname config question

Take a look at /etc/netsvc.conf - you should be able to specify the lookup
order (ie - hosts=local,bind)

"TomK" <namffuak@NO.skyenet.SPAM.net> wrote in message
news:0rhlv0l4m8na1gp0jsqphs9rs6fi7n3b8t@4ax.com...
> My systems use the unqualified host name as 'hostname' -- so the
> 'hostname' command returns 'box' and not 'box.foo.com'. I don't remember
> WHY I set them up this way - IIRC, it was SAP, HACMP, or PSSP on the SP
> frame that required hostname be the 'shortname' AND eight or fewer
> characters (this was lat '96, early '97, AIX 4.1, SAP/R3 3.6, HACMP 2.1,
> and God only knows which HACMP version).
>
> We're now trying to install some awfull java-based functionality for SAP
> and it fails -- can't connect to 'box'. If we change to a fully qualified
> hostname, it seems to work. It looks like it does a lookup on 'box', gets
> 1.2.3.4, does a reverse on 1.2.3.4 and gets 'box.foo.com' and says this
> isn't 'box'.
>
> I can't seem to find a reference to 'shortname' anywhere, and I'm
> wondering how big a can of worms we'll need to re-can if we start changing
> the hostname across our production landscape.
>
> What am I missing here? Am I between the proverbial rock and hard place?
>
> We're on AIX 5.1 ML 4, HACMP/ES 4.5.1, SAP 4.6, and no longer an SP
> environment.
>
> Oh, and for what it's worth, SAP indicates that hostname needs to be fully
> qualified . . .
>
> Tom



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 06:43 AM
TomK
 
Posts: n/a
Default Re: hostname config question

On Fri, 28 Jan 2005 19:49:11 -0500, "JSimth" <jsmith@microsoft.com> wrote:

>"TomK" <namffuak@NO.skyenet.SPAM.net> wrote in message
>news:0rhlv0l4m8na1gp0jsqphs9rs6fi7n3b8t@4ax.com.. .
>> My systems use the unqualified host name as 'hostname' -- so the
>> 'hostname' command returns 'box' and not 'box.foo.com'. I don't remember
>> WHY I set them up this way - IIRC, it was SAP, HACMP, or PSSP on the SP
>> frame that required hostname be the 'shortname' AND eight or fewer
>> characters (this was lat '96, early '97, AIX 4.1, SAP/R3 3.6, HACMP 2.1,
>> and God only knows which HACMP version).
>>
>> We're now trying to install some awfull java-based functionality for SAP
>> and it fails -- can't connect to 'box'. If we change to a fully qualified
>> hostname, it seems to work. It looks like it does a lookup on 'box', gets
>> 1.2.3.4, does a reverse on 1.2.3.4 and gets 'box.foo.com' and says this
>> isn't 'box'.
>>
>> I can't seem to find a reference to 'shortname' anywhere, and I'm
>> wondering how big a can of worms we'll need to re-can if we start changing
>> the hostname across our production landscape.
>>
>> What am I missing here? Am I between the proverbial rock and hard place?
>>
>> We're on AIX 5.1 ML 4, HACMP/ES 4.5.1, SAP 4.6, and no longer an SP
>> environment.
>>
>> Oh, and for what it's worth, SAP indicates that hostname needs to be fully
>> qualified . . .
>>
>> Tom

>
>Take a look at /etc/netsvc.conf - you should be able to specify the lookup
>order (ie - hosts=local,bind)
>


We are -- and the short name is listed first in /etc/hosts (HACMP again).
I'm about to go bomb-lobbing anarchist on these configs -- four
interfaces, with different IP networks, with IP (DNS) names of box1, box2,
box3, and box4 -- and a host name of box. There's too much crap out there
that associates AN IP address with THE host name when there are multiple
ways of reaching the system.

Tom
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 06:47 AM
Jose Pina Coelho
 
Posts: n/a
Default Re: hostname config question

"JSimth" <jsmith@microsoft.com> wrote in
news:vP2dnTBrZL18HmbcRVn-rg@rogers.com:
> Take a look at /etc/netsvc.conf - you should be able to specify the
> lookup order (ie - hosts=local,bind)


Unless the DNS servers are correctly configured, the system will hang while
trying to reverse the IPv6 loopback address.

The fix to this is to use hosts = local, bind4 (Resolve only IPv4
addresses) this is no great loss if you're not using IPv6 yet.


--
Doing AIX support was the most monty-pythonesque
activity available at the time.
Eagerly awaiting my thin chocolat mint.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 06:47 AM
bennett.tony@cnf.com
 
Posts: n/a
Default Re: hostname config question

Tom,

Look at your /etc/resolv.conf and confirm
it has a "domain" stanza...
i.e.: domain mydomain.com

>From the man page on resolv.conf:

A domain entry tells the resolver routines which default domain
name to append to names that do not end with a . (period).
There can be only one domain entry. This entry is of the form:
domain DomainName

HTH,
-tony

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 06:47 AM
TomK
 
Posts: n/a
Default Re: hostname config question

On 07 Feb 2005 21:00:09 GMT, Jose Pina Coelho <eresquigal@netcabo.pt>
wrote:

>"JSimth" <jsmith@microsoft.com> wrote in
>news:vP2dnTBrZL18HmbcRVn-rg@rogers.com:
>> Take a look at /etc/netsvc.conf - you should be able to specify the
>> lookup order (ie - hosts=local,bind)

>
>Unless the DNS servers are correctly configured, the system will hang while
>trying to reverse the IPv6 loopback address.
>
>The fix to this is to use hosts = local, bind4 (Resolve only IPv4
>addresses) this is no great loss if you're not using IPv6 yet.


That's the option I was looking for this afternoon -- we just got the
report back from AIX support at SAP that the problem is that it's doing
the IPV4 lookup followed by an IPV6 lookup, with pointers to two APARS --
one to TCP, to take the first response, and one to the libc runtime to not
even do IPV6. I think we'll try this first.

And FWIW -- the problem is ONLY showing up on a system with HACMP 4.5.1
installed; it works as expected on two other identical software loads
minus HACMP.

Tom
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:15 AM.


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