yp_get_default_domain(3) php man page | unix.com

Man Page: yp_get_default_domain

Operating Environment: php

Section: 3

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)
Related Man Pages
domainname(8) - debian
ypdomainname(8) - debian
defaultdomain(5) - suse
nisdomainname(8) - suse
ypwhich(1) - sunos
Similar Topics in the Unix Linux Community
Error to configure Squirrelmail IMAP Proxy
Cannot successfully build PHP in Fedora 9