Re: determine domain name



You are correct. The unless the machine's hostname is configured as the
FQDN via the TCP configuration, you will not be able to derive it from
the ODM since it is NOT stored there.

The domain that is appended to the hostname and added to smit is stored
in /etc/resolv.conf. You could also use resolution if it is set to
local then bind and the FQDN entry is in /etc/hosts ( if it is the first
entry ).

This is one of those flat file things !

Look in /etc/resolv.conf and see if it has the info you are searching
for...

Lamar

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
F. Even
Sent: Saturday, January 21, 2006 12:42 AM
To: aix-l@xxxxxxxxxxxxx
Subject: Re: determine domain name

Shawn Bierman wrote:
> Is there an "AIX" way to determine the domain name of a node?
>
> hostname only reveals the hostname and there are no options to that
> command to give the FQDN.
>
> I don't want to use /etc/resolv.conf, I suppose I want the ODM to tell
> me.
>
> I can find the hostname with "lsattr -El inet0 -a hostname -F value"
> but there isn't anything I can find similar to get the domain name.

Perhaps I'm missing the obvious...but if you have not configured an
FQDN, you will have no means of retrieving it.

If "hostname" does not reveal an fqdn, you most likely do not have one
configured. I don't recall of a "uname -n" will show the complete FQDN
or not (don't have access to an AIX box at this moment).

"smitty hostname" to configure.




Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.



Relevant Pages