Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yp_get_default_domain(3) [php man page]

YP_GET_DEFAULT_DOMAIN(3)						 1						  YP_GET_DEFAULT_DOMAIN(3)

yp_get_default_domain - Fetches the machine's default NIS domain

SYNOPSIS
string yp_get_default_domain (void ) DESCRIPTION
Returns the default domain of the node. Can be used as the domain parameter for successive NIS calls. A NIS domain can be described a group of NIS maps. Every host that needs to look up information binds itself to a certain domain. Refer to the documents mentioned at the beginning for more detailed information. RETURN VALUES
Returns the default domain of the node or FALSE. Can be used as the domain parameter for successive NIS calls. EXAMPLES
Example #1 Example for the default domain <?php $domain = yp_get_default_domain(); echo "Default NIS domain is: " . $domain; ?> PHP Documentation Group YP_GET_DEFAULT_DOMAIN(3)

Check Out this Related Man Page

domainname(8)						      System Manager's Manual						     domainname(8)

NAME
domainname - set or display name of current domain nisdomainname - set or display name of current NIS(YP) domain ypdomainname - set or display name of current NIS(YP) domain SYNOPSYS
domainname [ domain ] nisdomainname [ domain ] ypdomainname [ domain ] DESCRIPTION
Without an argument, domainname displays the name of the current NIS domainname of the system. domainname uses the getdomainname(2) function for getting the domainname, nisdomainname and ypdomainname are using yp_get_default_domain(3). Only the super-user can set the name of the domain by specifying the new domain as an argument. All three programs uses setdomainname(2) for this. Bear in mind, that already running programs may continue to use the old domainname. SEE ALSO
getdomainname(2), setdomainname(2), yp_get_default_domain(3), ypbind(8), ypcat(1), ypmatch(1), ypwhich(1), yppoll(8), ypserv(8), yset(8) AUTHOR
domainname is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@suse.de>. YP Tools 2.9 May 1999 domainname(8)
Man Page