1GETNAMEINFO(1) User Contributed Perl Documentation GETNAMEINFO(1)
2
3
4
6 "getnameinfo" - command-line tool to "getnameinfo(3)" resolver
7
9 getnameinfo [options...] address port
10
12 This tool provides a convenient command-line wrapper around the
13 getnameinfo(3) resolver function. It will perform a single reverse
14 lookup to convert an address and port number into its host and service
15 names. This is mainly useful when debugging names resolution problems,
16 because it allows inspection of the getnameinfo(3) behaviour itself,
17 outside of any real program that is trying to use it.
18
20 --address, -A ADDR
21 Numerical form of address to look up. If not supplied, will use
22 the first positional argument.
23
24 --port, -P PORT
25 Port number to look up. If not supplied, will use the second
26 positional argument.
27
28 --dgram Sets the "NI_DGRAM" flag; looks up a "SOCK_DGRAM" (udp) port
29 allocation rather than "SOCK_STREAM" (tcp).
30
31 --help Display a help summary and exit
32
34 Paul Evans <leonerd@leonerd.org.uk>
35
36
37
38perl v5.32.0 2020-07-28 GETNAMEINFO(1)