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!

identify domain

Status
Not open for further replies.

Birbone

MIS
Dec 20, 2000
141
0
0
US
How do I identiy the domain of a server?

-B :cool:
 
I'm not sure that 'domain' has any real meaning for a true Unix system. If you're running a Unix like shell on a windows system try
Code:
se | grep -i domain
on my PC running Cygwin I get
Code:
$ set | grep -i domain
USERDNSDOMAIN=GB001.MEGACORP.NET
USERDOMAIN=GB001

Ceci n'est pas une signature
Columb Healy
 
Hmm...

More info. On my RedHat ES4 system the command 'dnsdomainname' returns the domain so it looks like my initial contention tha tUnix doesn't understand domains was wrong.

Incidentally I found this by using the 'apropos' command which looks through the man pages and I got
Code:
$ apropos domain
IO::Socket::INET     (3pm)  - Object interface for AF_INET domain sockets
IO::Socket::UNIX     (3pm)  - Object interface for AF_UNIX domain sockets
Net::Domain          (3pm)  - Attempt to evaluate the current host's internet name and domain
README.apollo [perlapollo] (1)  - Perl version 5 on Apollo DomainOS
bind_textdomain_codeset (3)  - set encoding of message translations
bindtextdomain       (3)  - set directory containing message catalogs
dnsdomainname [hostname] (1)  - show the system's DNS domain name
domainname [hostname] (1)  - show or set the system's NIS/YP domain name
getdomainname        (2)  - get/set domain name
ksh                  (1)  - Public domain Korn shell
ksh [pdksh]          (1)  - Public domain Korn shell
named                (8)  - Internet domain name server
nisdomainname [hostname] (1)  - show or set system's NIS/YP domain name
personality          (2)  - set the process execution domain
res_querydomain [resolver] (3)  - resolver routines
setdomainname [getdomainname] (2)  - get/set domain name
textdomain           (3)  - set domain for future gettext() calls
ypdomainname [hostname] (1)  - show or set the system's NIS/YP domain name

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top