1DT-GETHOST(1)                    User Commands                   DT-GETHOST(1)
2
3
4

NAME

6       dt-gethost - command-line test program for the val_gethostbyname() (and
7       related) functions
8

SYNOPSIS

10          dt-gethost [options] name
11

DESCRIPTION

13       This utility is a command-line wrapper around the val_gethostbyname()
14       (and related) functions.  It invokes the val_gethostbyname(),
15       val_gethostbyname_r() and val_gethostbyname2() functions for the given
16       command-line arguments and displays the returned hostent, the
17       validation status value, and the value of the h_errno variable.
18
19       The exit status for this program is 1 if the answer received is
20       trusted, 2 if the answer received is validated, and -1 for an error.
21       The program returns 0 if no validation was performed or if the result
22       was neither trusted nor validated.  The trusted and validated status
23       values are obtained using the val_istrusted() and val_isvalidated()
24       functions from libval(3).
25

OPTIONS

27       -r, --reentrant
28           Use the re-entrant query interface.
29
30       -f, --family=[AF_INET|AF_INET6]
31           Use the specified address family for the query.
32
33       -o, --output=<debug-level>:<dest-type>[:<dest-options>]
34           <debug-level> is 1-7, corresponding to syslog levels ALERT-DEBUG
35           <dest-type> is one of file, net, syslog, stderr, stdout
36           <dest-options> depends on <dest-type>
37               file:<file-name>   (opened in append mode)
38               net[:<host-name>:<host-port>] (127.0.0.1:1053
39               syslog[:facility] (0-23 (default 1 USER))
40
41       -h, --help
42           Display the help and exit.
43

PRE-REQUISITES

45       libval
46
48       Copyright 2005-2013 SPARTA, Inc.  All rights reserved.  See the COPYING
49       file included with the DNSSEC-Tools package for details.
50

AUTHORS

52       Abhijit Hayatnagarkar, Suresh Krishnaswamy, Robert Story
53

SEE ALSO

55       val_getaddrinfo(3)
56
57       libval(3)
58
59       http://www.dnssec-tools.org
60
61
62
63perl v5.18.4                      2015-04-27                     DT-GETHOST(1)
Impressum