Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

domainname(1yp) [ultrix man page]

domainname(1yp) 														   domainname(1yp)

Name
       domainname - display or set the name of the current domain for this system

Syntax
       domainname [nameofdomain]

Description
       The  command,  when  used without an argument, displays the name of the current domain.	The startup script must be used to set the current
       domain name before any other YP commands can be issued.

       A domain is a logical grouping of networked-connected systems established for the purpose of sharing a common set of data  files.   Domains
       are only used by the yellow pages (YP) service and are called YP domains.  A YP domain is a directory in established through the use of the
       command, where a YP server holds all of the YP maps.  Each YP map contains a set of keys and associated key values.  For example, in a  map
       called  the  host  names stored there constitute the keys.  The corresponding internet addresses of each host constitute the associated key
       values.

See Also
       ypfiles(5yp), ypsetup(8yp)

																   domainname(1yp)

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

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

question about domainname

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)
Discussion started by: dookeobih
1 Replies

2. Linux

domainname command

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)
Discussion started by: byblyk
4 Replies

3. UNIX for Dummies Questions & Answers

domainname dnsdomainname....etc ??

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)
Discussion started by: moxxx68
7 Replies

4. Programming

FQDN and getdomainname

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)
Discussion started by: NanoSec
1 Replies

5. IP Networking

ddns-rev-domainname being created wrong.

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)
Discussion started by: Adesso
3 Replies

6. Shell Programming and Scripting

awk split domain name

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)
Discussion started by: RedWizard75
2 Replies