1GETNAMEINFO(1)        User Contributed Perl Documentation       GETNAMEINFO(1)
2
3
4

NAME

6       "getnameinfo" - command-line tool to "getnameinfo(3)" resolver
7

SYNOPSIS

9       getnameinfo [options...] address port
10

DESCRIPTION

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

OPTIONS

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

AUTHOR

34       Paul Evans <leonerd@leonerd.org.uk>
35
36
37
38perl v5.34.0                      2021-07-22                    GETNAMEINFO(1)
Impressum