File: addrinfo.1

package info (click to toggle)
ndisc6 0.7.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 664 kB
  • ctags: 179
  • sloc: ansic: 2,407; sh: 865; makefile: 115; perl: 37
file content (72 lines) | stat: -rw-r--r-- 2,736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.\" ***********************************************************************
.\" *  Copyright © 2006 Rémi Denis-Courmont.                              *
.\" *  This program is free software; you can redistribute and/or modify  *
.\" *  it under the terms of the GNU General Public License as published  *
.\" *  by the Free Software Foundation; version 2 of the license.         *
.\" *                                                                     *
.\" *  This program is distributed in the hope that it will be useful,    *
.\" *  but WITHOUT ANY WARRANTY; without even the implied warranty of     *
.\" *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               *
.\" *  See the GNU General Public License for more details.               *
.\" *                                                                     *
.\" *  You should have received a copy of the GNU General Public License  *
.\" *  along with this program; if not, you can get it from:              *
.\" *  http://www.gnu.org/copyleft/gpl.html                               *
.\" ***********************************************************************
.TH "ADDRINFO" "1" "$Date: 2006-09-30 22:32:50 +0300 (sam, 30 sep 2006) $" "addrinfo" "User's Manual"
.SH NAME
addrinfo, nameinfo \- perform DNS lookups from scripts
.SH SYNOPSIS
.BR "addrinfo" " [" "-46mnr" "] [" "HOSTNAMES" "]"
.BR "nameinfo" " [" "-46n" "] [" "HOSTNAMES" "]"

.SH DESCRIPTON
Write addresses or canonical hostname of specified names to the standard
output. If no names are specified via the command line, they are read from
the standard input.

.SH OPTIONS

.TP
.BR "\-4" " or " "\-\-ipv4"
Only try to perform IPv4 lookups.

.TP
.BR "\-6" " or " "\-\-ipv6"
Only try to perform IPv6 lookups.

.TP
.BR "\-h" " or " "\-\-help"
Display some help and exit.

.TP
.BR "\-m" " or " "\-\-multiple"
Normally, if a name yields multiple results, only the first one is printed.
With this optional parameter, all results will be printed on a single line,
separated by spaces.

.TP
.BR "\-n" " or " "\-\-numeric"
Prevent forward hostname lookup.
This ensures that the input names are numeric addresses, which do not need
to be looked up. Typically used along with the \-\-reverse option to convert
numerical addresses to canonical hostnames.

.TP
.BR "\-r" " or " "\-\-reverse"
Perform a reverse DNS lookup
.RB "(enabled implicitly with " "addrinfo" ")."
.BR "addrinfo" " prints numerical resolved addresses by default instead."

.TP
.BR "\-\-version"
Display program version and license and exit.

.SH "SEE ALSO"
host(1), getaddrinfo(3), getnameinfo(3), resolv.conf(5)

.SH AUTHOR
R\[char233]mi Denis-Courmont <rdenis at simphalempin.com>

$Id: addrinfo.1 334 2006-09-30 19:32:50Z remi $