DOMAINNAME
Section: User Commands (1)
Index
Return to Main Contents
BSD mandoc
BSD 4.2
NAME
domainname
- set or print name of current host system
SYNOPSIS
domainname
[-s
]
[nameofhost
]
DESCRIPTION
Hostname
prints the name of the current host. The super-user can
set the domainname by supplying an argument; this is usually done in the
network initialization script
/etc/netstart
normally run at boot
time.
Options:
- -s
-
Trims off any domain information from the printed
name.
SEE ALSO
getdomainname(2)
HISTORY
The
domainname
command appeared in
BSD 4.2
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 00:38:45 GMT, March 26, 2025