hostname man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

HOSTNAME(1)		  BSD General Commands Manual		   HOSTNAME(1)

NAME
     hostname — set or print name of current host system

SYNOPSIS
     hostname [-s] [name-of-host | -r ip-address | -i interface [-6 | -4]]

DESCRIPTION
     The hostname utility prints the name of the current host.	The super-user
     can set the hostname by supplying an argument; this is usually done at
     boot time by setting the hostname variable in /etc/rc.conf.

     Options:

     -s	   Trim off any domain information from the printed name.

     -r	   Retrieve hostname via ip lookup.  The hostname is set to the first
	   (official) name returned for the supplied ip address.  Can be an
	   IPv6 or IPv4 address.

     -i	   Retrieve hostname via supplied interface name.

     -6	   Used in conjunction with -i to select the 1st IPv6 address on the
	   interface.

     -4	   Used in conjunction with -i to select the 1st IPv4 address on the
	   interface.  This is the default and assumed if -6 or -4 is not sup‐
	   plied.

SEE ALSO
     gethostname(3), rc.conf(5)

HISTORY
     The hostname command appeared in 4.2BSD.

BSD				April 28, 1995				   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net