1ADDR2NAME(1)                     User's Manual                    ADDR2NAME(1)
2
3
4

NAME

6       addr2name, name2addr - perform DNS lookups from scripts
7

SYNOPSIS

9       addr2name [-46cmnr] [HOSTNAMES]
10
11       name2addr [-46cn] [HOSTNAMES]
12
13

DESCRIPTON

15       Write  addresses  or canonical hostname of specified names to the stan‐
16       dard output. If no names are specified via the command line,  they  are
17       read from the standard input.
18
19

OPTIONS

21       -4 or --ipv4
22              Only try to perform IPv4 lookups.
23
24
25       -6 or --ipv6
26              Only try to perform IPv6 lookups.
27
28
29       -c or --config
30              Only  lookup  and  print results for address families that match
31              locally configured addresses (If the system  has  no  IPv4  resp
32              IPv6 address, then IPv4 resp IPv6 addresses are ignored).
33
34
35       -h or --help
36              Display some help and exit.
37
38
39       -m or --multiple
40              Normally,  if a name yields multiple results, only the first one
41              is printed.  With this optional parameter, all results  will  be
42              printed on a single line, separated by spaces.
43
44
45       -n or --numeric
46              Prevent  forward  hostname  lookup.  This ensures that the input
47              names are numeric addresses, which do not need to be looked  up.
48              Typically used along with the --reverse option to convert numer‐
49              ical addresses to canonical hostnames.
50
51
52       -r or --reverse
53              Perform  a  reverse  DNS   lookup   (enabled   implicitly   with
54              addr2name).   addr2name  prints  numerical resolved addresses by
55              default instead.
56
57
58       --version
59              Display program version and license and exit.
60
61

SEE ALSO

63       host(1), getaddrinfo(3), getnameinfo(3), resolv.conf(5)
64
65

AUTHOR

67       Rémi Denis-Courmont <remi at remlab dot net>
68
69       $Id: addr2name.1 658 2010-10-31 20:56:30Z remi $
70
71       http://www.remlab.net/ndisc6/
72
73
74
75addr2name   $Date: 2010-10-31 22:56:30 +0200 (dim. 31 oct. 2010) $ADDR2NAME(1)
Impressum