DOMAINNAME(1) BSD General Commands Manual DOMAINNAME(1)NAME
domainname -- set or print name of current YP/NIS domain
SYNOPSIS
domainname [ypdomain]
DESCRIPTION
The domainname utility prints the name of the current YP/NIS domain. The super-user can set the domain name by supplying an argument; this
is usually done at startup by specifying a domain name in the contents of the file /etc/defaultdomain.
NOTES
The YP/NIS (formerly ``Yellow Pages'' but renamed for legal reasons) domain name does not necessarily have anything to do with the Domain
Name System domain name, although they are often set equal for administrative convenience.
SEE ALSO getdomainname(3)HISTORY
The domainname command appeared in FreeBSD 1.1, based on a similar command in SunOS.
BSD September 18, 1994 BSD
Check Out this Related Man Page
domainname(1) General Commands Manual domainname(1)NAME
domainname - set or display name of Network Information Service domain
SYNOPSIS
[name_of_domain]
DESCRIPTION
Network Information Service (NIS) uses domain names to refer collectively to a group of hosts. Without an argument, domainname displays
the name of the NIS domain. Only superuser can set the domain name by providing name_of_domain. The domain name is usually set in the
configuration file by setting the variable. The name_of_domain is normally a valid Internet domain name.
DEPENDENCIES
NIS servers use the NIS domain name as the name of a subdirectory of Therefore, name_of_domain cannot be a or and it must not contain Since
the NIS domain name can be as long as 64 characters, name_of_domain may exceed the maximum file name length allowed on a given file system.
If that length is exceeded, the subdirectory name becomes a truncated version of the NIS domain name.
The first 14 characters of all NIS domains on the network must be unique; truncated names should be checked to verify that they meet this
requirement.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO ypinit(1M), getdomainname(2), setdomainname(2).
domainname(1)
I'm kindda confused about domainname and /etc/defaultdomain.
If I type domainname tesT.com, will this be added to /etc/defaultdomain or do I need to add manually on /etc/defaultdomain as well?...second question, if I type domainname tesT.com...is it case sensitive?
Thank you. (1 Reply)
Hey,
I've been on this for a while... can somebody explain to me what the domainname command really does. The man pages don't tell enough. And how can i have the domain name set so it will be the same all the time when the OS boots up. (4 Replies)
is there a variable that controls whether the settings of the domainname and dnsdomainame, nisdomaname and hostname are global or local (as in static).. i keep setting the values for these commands and after a while they disappear. how can I keep one static value that will remain even after I have... (7 Replies)
I have a need to create a connection between an erlang node and my C program.
the name of an erlang node looks something like monitor@host1.ipc.co.za.
The piece of code I have to construct a node name looks like this:
char *hostname, *domainname, *nodename = "monitor", *thisfullnodename;
... (1 Reply)
Greetings all,
I have been battling with this problem for some time now, and I am not sure if I am just not seeing the obvious anymore or have made a stupid mistake, but I just can seem to get the reverse address in my network to run the right way.
Short description of my network:
I have a... (3 Replies)
Hi,
I have a domain name that I need to convert to an LDAP base for this example - "my.domain.name"
I know that I could easily see there are 3 fields and split with awk with
awk -F. '{printf "dc=%s,dc=%s,dc=%s", $1, $2, $3}'
However, what if I have 5 fields or 4 fields, is there away... (2 Replies)