| Line | |
|---|
| 1 | .TH HOSTADDR 1
|
|---|
| 2 | .SH NAME
|
|---|
| 3 | hostaddr \- show ethernet address, IP address or hostname
|
|---|
| 4 | .SH SYNOPSIS
|
|---|
| 5 | .B hostaddr
|
|---|
| 6 | .RB [ \-eiah ]
|
|---|
| 7 | .RB [ \-E
|
|---|
| 8 | .IR eth-device ]
|
|---|
| 9 | .RB [ \-I
|
|---|
| 10 | .IR ip-device ]
|
|---|
| 11 | .SH DESCRIPTION
|
|---|
| 12 | Without any of the
|
|---|
| 13 | .B \-eia
|
|---|
| 14 | options,
|
|---|
| 15 | .B hostaddr
|
|---|
| 16 | shows the ethernet address, IP address and hostname of the local host on one
|
|---|
| 17 | line in the given order. With options only the wanted fields are shown,
|
|---|
| 18 | still in the same order, not in option order.
|
|---|
| 19 | .SH OPTIONS
|
|---|
| 20 | .TP
|
|---|
| 21 | .B \-e
|
|---|
| 22 | Show the ethernet address.
|
|---|
| 23 | .TP
|
|---|
| 24 | .B \-i
|
|---|
| 25 | Show the IP address.
|
|---|
| 26 | .TP
|
|---|
| 27 | .B \-a
|
|---|
| 28 | Show the fully qualified hostname. The IP address is shown if it
|
|---|
| 29 | can't be translated to a host name. This usually indicates that the
|
|---|
| 30 | DNS reverse address translation tables are incomplete or that
|
|---|
| 31 | the name daemon couldn't be contacted.
|
|---|
| 32 | .TP
|
|---|
| 33 | .B \-h
|
|---|
| 34 | Set the hostname of the machine if the caller is the superuser. (Used at
|
|---|
| 35 | boot time by the network initialization scripts.)
|
|---|
| 36 | .SH "SEE ALSO"
|
|---|
| 37 | .BR ifconfig (8),
|
|---|
| 38 | .BR dhcpd (8),
|
|---|
| 39 | .BR nonamed (8),
|
|---|
| 40 | .BR inet (8),
|
|---|
| 41 | .BR boot (8).
|
|---|
| 42 | .SH AUTHOR
|
|---|
| 43 | Kees J. Bot (kjb@cs.vu.nl)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.