DOMAINNAME(8) - Linux man page online | Administration and privileged commands

Set or display name of current domain.

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


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


domainname [ domain ] nisdomainname [ domain ] ypdomainname [ domain ]


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, nisdo‐ mainname 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.


getdomainname(2), setdomainname(2), yp_get_default_domain(3), ypbind(8), ypcat(1), ypmatch(1), ypwhich(1), yppoll(8), ypserv(8), ypset(8)


domainname is part of the yp-tools package, which was written by Thorsten Kukuk <>.
YP Tools 3.3 April 2010 domainname(8)
This manual Reference Other manuals
domainname(8) referred by yp_dump_binding(8) | ypcat(1) | ypmatch(1) | yppoll(8) | ypset(8) | yptest(8) | ypwhich(1)
refer to getdomainname(2) | ypbind(8) | ypcat(1) | ypmatch(1) | yppoll(8) | ypserv(8) | ypset(8) | ypwhich(1)
Download raw manual
Main page System Manager's Manual (+2060) YP Tools 3.3 (+9) № 8 (+5755)
Go top