Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX command question...

Status
Not open for further replies.

quattro5vt

IS-IT--Management
Apr 3, 2002
19
0
0
US
Is their AIX command that will just display the server’s domain membership alone? Somewhat like the hostname command but for a domain name:

# hostname
server1

Thanks…
 
Kind of klunky, but:

cat /etc/resolv.conf | grep domain | awk '{ print $2 }'

There is a domainname command, but that is to display the NIS domain name.
 
Hi,
You have found the command yourself. Just type
# domainname

"man domainname" for more details
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top