.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "IPSEC LWDNSQ" 8 "" "" "" .SH NAME lwdnsq \- lookup items in DNS to help pluto (and others) .SH "SYNOPSIS" .nf \fBipsec lwdnsq\fR lwdnsq\fR [\fB\-\-prompt\fR] [\fB\-\-serial\fR] .fi .nf \fBipsec lwdnsq\fR lwdnsq\fR [\fB\-\-help\fR] .fi .SH "DESCRIPTION" .PP The \fBipsec lwdnsq\fR is a helper program that does DNS lookups for other programs. It implements an asynchronous interface on stdin/stdout, with an ASCII driven command language. .PP If stdin is a tty or if the \fB\-\-prompt\fR option is given, then it issues a prompt to the user. Otherwise, it is silent, except for results. .PP The program will accept multiple queries concurrently, with each result being marked with the ID provided on the output. The IDs are strings. .PP If the \fB\-\-serial\fR option is given, then the program will not attempt to execute concurrent queries, but will serialize all input and output. .SH "QUERY LANGUAGE" .PP There are eleven command that the program understands. This is to lookup different types of records in both the forward and reverse maps. Every query includes a queryid, which is returned in the output, on every single line to identify the transaction. .SS "KEY queryid FQDN" .PP This request looks up the KEY resource record for the given \fBFQDN.\fR. .SS "KEY4 queryid A.B.C.D" .PP This request looks up the KEY resource record found in the reverse map for the IP version 4 address \fBA.B.C.D\fR, i.e. it looks up D.C.B.A.in\-addr.arpa. .SS "KEY6 queryid A:B::C:D" .PP This request looks up the KEY resource record found in the reverse map for the IPv6 address \fBA:B::C:D\fR, i.e. it looks the 32\-nibble long entry in ip6.arpa (and ip6.int). .SS "TXT4 queryid A.B.C.D" .PP This request looks up the TXT resource record found in the reverse map for the IP version 4 address \fBA.B.C.D\fR, i.e. it looks up D.C.B.A.in\-addr.arpa. .SS "TXT6 queryid A:B::C:D" .PP This request looks up the TXT resource record found in the reverse map for the IPv6 address \fBA:B::C:D\fR, i.e. it looks the 32\-nibble long entry in ip6.arpa (and ip6.int). .SS "KEY queryid FQDN" .PP This request looks up the IPSECKEY resource record for the given \fBFQDN.\fR. See note about IPSECKEY processing, below. .SS "IPSECKEY4 queryid A.B.C.D" .PP This request looks up the IPSECKEY resource record found in the reverse map for the IP version 4 address \fBA.B.C.D\fR, i.e. it looks up D.C.B.A.in\-addr.arpa. See special note about IPSECKEY processing, below. .SS "IPSECKEY6 queryid A:B::C:D" .PP This request looks up the IPSECKEY resource record found in the reverse map for the IPv6 address \fBA:B::C:D\fR, i.e. it looks the 32\-nibble long entry in ip6.arpa (and ip6.int). See special note about IPSECKEY processing, below. .SS "OE4 queryid A.B.C.D" .PP This request looks an appropriate record for Opportunistic Encryption for the given IP address. This attempts to look for the delegation record. This may be one of IPSECKEY, KEY, or TXT record. Unless configured otherwise, (see OE4 Directives, below), then a query type of ANY will be used to retrieve all relevant records, and all will be returned. .SS "OE6 queryid A:B::C:D" .PP This request looks an appropriate record for Opportunistic Encryption for the given IPv6 address. This attempts to look for the delegation record. This may be one of IPSECKEY, KEY, or TXT record. Unless configured otherwise, (see OE Directives, below), then a query type of ALL will be used to retrieve all relevant records, and all will be returned. i.e. it looks the 32\-nibble long entry in ip6.arpa (and ip6.int). .SS "A queryid FQDN" .PP This request looks up the A (IPv4) resource record for the given \fBFQDN.\fR. .SS "AAAA queryid FQDN" .PP This request looks up the AAAA (IPv6) resource record for the given \fBFQDN.\fR. .SH "REPLIES TO QUERIES" .PP All replies from the queries are in the following format: .nf