]> git.saurik.com Git - apple/network_cmds.git/blob - unbound/testcode/streamtcp.1
7c738d9d278c1776f3379ac2f6ed147e62504d36
[apple/network_cmds.git] / unbound / testcode / streamtcp.1
1 .TH "unbound\-streamtcp" "1" "Mar 21, 2013" "NLnet Labs" "unbound"
2 .\"
3 .\" unbound-streamtcp.1 -- unbound DNS lookup utility
4 .\"
5 .SH "NAME"
6 .LP
7 .B unbound\-streamtcp
8 \- unbound DNS lookup utility
9 .SH "SYNOPSIS"
10 .LP
11 .B unbound\-streamtcp
12 .RB [ \-unsh ]
13 .RB [ \-f
14 .IR ipaddr[@port] ]
15 .I name
16 .I type
17 .I class
18 .SH "DESCRIPTION"
19 .LP
20 .B unbound\-streamtcp
21 sends a DNS Query of the given \fBtype\fR and \fBclass\fR for the given \fBname\fR
22 to the DNS server over TCP and displays the response.
23 .P
24 If the server to query is not given using the \fB\-f\fR option then localhost
25 (127.0.0.1) is used. More queries can be given on one commandline, they
26 are resolved in sequence.
27 .P
28 The available options are:
29 .TP
30 .I name
31 This name is resolved (looked up in the DNS).
32 .TP
33 .I type
34 Specify the type of data to lookup.
35 .TP
36 .I class
37 Specify the class to lookup for.
38 .TP
39 .B \-u
40 Use UDP instead of TCP. No retries are attempted.
41 .TP
42 .B \-n
43 Do not wait for the answer.
44 .TP
45 .B \-s
46 Use SSL.
47 .TP
48 .B \-h
49 Print program usage.
50 .TP
51 .B \-f \fIipaddr[@port]
52 Specify the server to send the queries to. If not specified localhost (127.0.0.1) is used.
53 .SH "EXAMPLES"
54 .LP
55 Some examples of use.
56 .P
57 $ unbound\-streamtcp www.example.com A IN
58 .P
59 $ unbound\-streamtcp \-f 192.168.1.1 www.example.com SOA IN
60 .P
61 $ unbound\-streamtcp \-f 192.168.1.1@1234 153.1.168.192.in\-addr.arpa. PTR IN
62 .SH "EXIT CODE"
63 The unbound\-streamtcp program exits with status code 1 on error,
64 0 on no error.
65 .SH "AUTHOR"
66 This manual page was written by Tomas Hozza <thozza@redhat.com>.