]>
Commit | Line | Data |
---|---|---|
726f69e2 | 1 | .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu) |
6dbe3af9 | 2 | .\" May be distributed under the GNU General Public License |
726f69e2 | 3 | .TH DOMAINNAME 1 "26 December 1992" "Linux 0.98" "Linux Programmer's Manual" |
6dbe3af9 | 4 | .SH NAME |
726f69e2 | 5 | domainname \- set or print domain of current host |
6dbe3af9 KZ |
6 | .SH SYNOPSIS |
7 | .BR "domainname [ " name " ]" | |
8 | .SH DESCRIPTION | |
9 | .B domainname | |
726f69e2 | 10 | prints the domainname of the current host, from the |
6dbe3af9 KZ |
11 | .BR getdomainname (3) |
12 | library call. If an argument is present and the effective UID is 0, | |
13 | .B domainname | |
726f69e2 | 14 | changes the name of the host, with the |
6dbe3af9 KZ |
15 | .BR setdomainname (2) |
16 | system call. This is usually done at boot time in the | |
17 | .I /etc/rc.local | |
18 | script. | |
6dbe3af9 KZ |
19 | .SH FILES |
20 | .I /etc/rc.local | |
21 | .SH "SEE ALSO" | |
726f69e2 KZ |
22 | .BR getdomainname (3), |
23 | .BR setdomainname (2), | |
24 | .BR uname (1), | |
25 | .BR uname (2) | |
6dbe3af9 KZ |
26 | .SH AUTHOR |
27 | Lars Wirzenius by substituting in hostname.c | |
28 |