From d16e5588cc8b427324f2536652258ec55152bc32 Mon Sep 17 00:00:00 2001
From: Mark Andrews -v] [-v] [-j] [-j] [-t -t directory] {filename} [directory] {filename} [-z-z]
- + - +
-d] [-d] [-j] [-j] [-q] [-q] [-v] [-v] [-c -c class] [class] [-k -k mode] [mode] [-n -n mode] [mode] [-o -o filename] [filename] [-t -t directory] [directory] [-w -w directory] [directory] [-D] [-D] [-W -W modemode] {zonename} {filename}- + - +
-b -b address] [address] [-c -c class] [class] [-f -f filename] [filename] [-k -k filename] [filename] [-p -p port#] [port#] [-t -t type] [type] [-x -x addr] [addr] [-y -y name:key] [name:key] [-4] [-4] [-6-6] [name] [type] [class] [queryopt...]dig [ [-h-h]
is normally used with command-line arguments, it also has a batch mode of operation for reading lookup requests from a file. A brief summary of its command-line arguments -and options is printed when the -h-h option is given. Unlike earlier versions, the BIND9 implementation of is the name or IP address of the name server to query. This can be an IPv4 address in dotted-decimal notation or an IPv6 address in colon-delimited notation. When the supplied -serverserver argument is a hostname, dig resolves that name before querying that name -server. If no serverserver argument is provided,
indicates what type of query is required —
ANY, A, MX, SIG, etc.
-typetype can be any valid query type. If no
-typetype argument is supplied,
OPTIONS
The The -b-b option sets the source IP address of the query
-to addressaddress. This must be a valid address on
one of the host's network interfaces or "0.0.0.0" or "::". An optional port
may be specified by appending "#<port>"
The default query class (IN for internet) is overridden by the
--c option. -c option. classclass is any valid
class, such as HS for Hesiod records or CH for CHAOSNET records.
The The -f-f option makes dig operate
in batch mode by reading a list of lookup requests to process from the
-file filenamefilename. The file contains a number of
queries, one per line. Each entry in the file should be organised in
the same way they would be presented as queries to
@@ -328,12 +344,12 @@ CLASS="COMMAND"
> using the command-line interface.
If a non-standard port number is to be queried, the
--p option is used. -p option is used. port#port# is
the port number that
The The -4-4 option forces dig to only
-use IPv4 query transport. The -6-6 option forces
dig to only use IPv6 query transport.
The The -t-t option sets the query type to
-typetype. It can be any valid query type which is
supported in BIND9. The default query type "A", unless the
--x-x option is supplied to indicate a reverse lookup.
A zone transfer can be requested by specifying a type of AXFR. When
an incremental zone transfer (IXFR) is required,
-type is set to type is set to ixfr=Nixfr=N.
The incremental zone transfer will contain the changes made to the zone
since the serial number in the zone's SOA record was
-NN.
Reverse lookups - mapping addresses to names - are simplified by the
--x option. -x option. addraddr is an IPv4
address in dotted-decimal notation, or a colon-delimited IPv6 address.
When this option is used, there is no need to provide the
-name, name, classclass and
-typetype arguments. dig
automatically performs a lookup for a name like
-11.12.13.10.in-addr.arpa11.12.13.10.in-addr.arpa and sets the query type and
class to PTR and IN respectively. By default, IPv6 addresses are
looked up using nibble format under the IP6.ARPA domain.
To use the older RFC1886 method using the IP6.INT domain
-specify the -i-i option. Bit string labels (RFC2874)
are now experimental and are not attempted.
dig and their
responses using transaction signatures (TSIG), specify a TSIG key file
-using the -k-k option. You can also specify the TSIG
-key itself on the command line using the -y-y option;
-namename is the name of the TSIG key and
-keykey is the actual key. The key is a base-64
encoded string, typically generated by (8).
-Caution should be taken when using the -y-y option on
multi-user systems as the key can be visible in the output from
Each query option is identified by a keyword preceded by a plus sign
-(++). Some keywords set or reset an option. These may be preceded
-by the string nono to negate the meaning of that keyword. Other
keywords assign values to options like the timeout interval. They
-have the form +keyword=value+keyword=value.
The query options are:
@@ -524,9 +540,9 @@ The query options are:
CLASS="VARIABLELIST"
> Use [do not use] TCP when querying name servers. This alternate
-syntax to +[no]tcp+[no]tcp is provided for backwards
compatibility. The "vc" stands for "virtual circuit". Set the search list to contain the single domain
-somenamesomename, as if specified in a
/etc/resolv.conf, and enable search list
-processing as if the +search+search option were given. Deprecated, treated as a synonym for Deprecated, treated as a synonym for Sets the "aa" flag in the query. A synonym for A synonym for Display [do not display] the CLASS when printing the record. Display [do not display] the TTL when printing the record. dig
normally sends recursive queries. Recursion is automatically disabled
-when the +nssearch+nssearch or
-+trace+trace query options are used. Show [or do not show] the IP address and port number that supplied the
-answer when the +short+short option is enabled. If
short form answers are requested, the default is not to show the
source address and port number of the server that provided the answer. Set or clear all display flags.
Sets the timeout for a query to
-TT seconds. The default time out is 5 seconds.
-An attempt to set TT to less than 1 will result
in a query timeout of 1 second being applied. Sets the number of times to try UDP queries to server to
-TT instead of the default, 3. If
-TT is less than or equal to zero, the number of
tries is silently rounded up to 1. Sets the number of times to retry UDP queries to server to
-TT instead of the default, 2. Unlike
-+tries+tries, this does not include the initial
query. Set the number of dots that have to appear in
-name to name to Set the UDP message buffer size advertised using EDNS0 to
-BB bytes. The maximum and minimum sizes of this
buffer are 65535 and 0 respectively. Values outside this range are
rounded up or down appropriately. output. Specify a trusted key to be used with Specify a trusted key to be used with dig supports
specifying multiple queries on the command line (in addition to
-supporting the -f-f batch file option). Each of those
queries can be supplied with its own set of flags, options and query
options. In this case, each In this case, each +[no]tcp+[no]tcp+[no]vc+[no]vc+[no]ignore+[no]ignore+domain=somename+domain=somename+[no]search+[no]search+[no]defname+[no]defname+[no]search+[no]search+[no]aaonly+[no]aaonly+[no]aaflag+[no]aaflag+[no]aaonly+[no]aaonly.+[no]adflag+[no]adflag+[no]cdflag+[no]cdflag+[no]cl+[no]cl+[no]ttlid+[no]ttlid+[no]recurse+[no]recurse+[no]nssearch+[no]nssearch+[no]trace+[no]trace+[no]cmd+[no]cmd+[no]short+[no]short+[no]identify+[no]identify+[no]comments+[no]comments+[no]stats+[no]stats+[no]qr+[no]qr+[no]question+[no]question+[no]answer+[no]answer+[no]authority+[no]authority+[no]additional+[no]additional+[no]all+[no]all+time=T+time=T+tries=T+tries=T+retry=T+retry=T+ndots=D+ndots=DDD for it to be
considered absolute. The default value is that defined using the
ndots statement in , or 1 if no
ndots statement is present. Names with fewer dots are interpreted as
relative names and will be searched for in the domains listed in the
-search or search or domaindomain directive in
.+bufsize=B+bufsize=B+[no]multiline+[no]multiline+[no]fail+[no]fail+[no]besteffort+[no]besteffort+[no]dnssec+[no]dnssec+[no]sigchase+[no]sigchase+trusted-key=####+trusted-key=####+sigchase+sigchase.
Requires dig be compiled with -DDIG_SIGCHASE.+[no]topdown+[no]topdownqueryquery argument represent an
individual query in the command-line syntax described above. Each
consists of any of the standard options and flags, the name to be
@@ -1062,9 +1078,9 @@ should be applied to that query.dig could be used from the command line
-to make three lookups: an ANY query for www.isc.orgwww.isc.org, a
reverse lookup of 127.0.0.1 and a query for the NS records of
-isc.orgisc.org.
-A global query option of +qr+qr is applied, so
that dig shows the initial query it made for each
lookup. The final query has a local query option of
-+noqr+noqr which means that dig
will not print the initial query when it looks up the NS records for
-isc.orgisc.org.
-aCdlnrTwv] [-aCdlnrTwv] [-c -c class] [class] [-N -N ndots] [ndots] [-R -R number] [number] [-t -t type] [type] [-W -W wait] [wait] [-m -m flag] [flag] [-4] [-4] [-6-6] {name} [server]namename is the domain name that is to be looked
up. It can also be a dotted-decimal IPv4 address or a colon-delimited
IPv6 address, in which case host will by default
perform a reverse lookup for that address.
-serverserver is an optional argument which is either
the name or IP address of the name server that /etc/resolv.conf.
The The -a-a (all) option is equivalent to setting the
--v-v option and asking host to make
a query of type ANY.
When the When the -C-C option is used, host
will attempt to display the SOA records for zone
-namename from all the listed authoritative name
servers for that zone. The list of name servers is defined by the NS
records that are found for the zone.
The The -c-c option instructs to make a DNS query of class
-classclass. This can be used to lookup Hesiod or
Chaosnet class resource records. The default class is IN (Internet).
host when the
--d or -d or -v-v option is used. The two
options are equivalent. They have been provided for backwards
-compatibility. In previous versions, the -d-d option
-switched on debugging traces and -v-v enabled verbose
output.
List mode is selected by the List mode is selected by the -l-l option. This makes
host perform a zone transfer for zone
-namename. Transfer the zone printing out the NS, PTR
-and address records (A/AAAA). If combined with -a-a
all records will be printed.
The The -i-i
option specifies that reverse lookups of IPv6 addresses should
use the IP6.INT domain as defined in RFC1886.
The default is to use IP6.ARPA.
The The -N-N option sets the number of dots that have to be
-in namename for it to be considered absolute. The
default value is that defined using the ndots statement in
.
The number of UDP retries for a lookup can be changed with the
--R option. -R option. numbernumber indicates
how many times host will repeat a query that does
not get answered. The default number of retries is 1. If
-numbernumber is negative or zero, the number of
retries will default to 1.
Non-recursive queries can be made via the Non-recursive queries can be made via the -r-r option.
Setting this option clears the host makes.
This should mean that the name server receiving the query will not
-attempt to resolve namename. The
--r-r option enables hosthost uses UDP when making queries. The
--T-T option makes it use a TCP connection when querying
the name server. TCP will be automatically selected for queries that
require it, such as zone transfer (AXFR) requests.
The The -4-4 option forces host to only
-use IPv4 query transport. The -6-6 option forces
host to only use IPv6 query transport.
The The -t-t option is used to select the query type.
-typetype can be any recognised query type: CNAME,
NS, SOA, SIG, KEY, AXFR, etc. When no query type is specified,
host automatically selects an appropriate query
type. By default it looks for A records, but if the
--C-C option was given, queries will be made for SOA
-records, and if namename is a dotted-decimal IPv4
address or colon-delimited IPv6 address,
The time to wait for a reply can be controlled through the
--W and -W and -w-w options. The
--W-W option makes host wait for
-wait seconds. If wait seconds. If waitwait
is less than one, the wait interval is set to one second. When the
--w-w option is used, host
The The -m-m can be used to set the memory usage debugging flags
-record, record, usageusage and
-tracetrace.
-option-option] [name | -] [server]server domaindomainlserver domaindomain
Change the default server to Change the default server to domaindomain; lserver uses the initial
-server to look up information about domaindomain, while serverset keyword[=value]]
class=valuevalue
[no]]debug[no]]d2domain=namenameSets the search list to Sets the search list to namename.
[no]]searchport=valuevalueChange the default TCP/UDP name server port to Change the default TCP/UDP name server port to valuevalue.
querytype=valuevalue
type=valuevalue
[no]]recurseretry=numbernumbertimeout=numbernumber
[no]]vc-c -c class] [class] [-e] [-e] [-f -f flag] [flag] [-g -g generator] [generator] [-h] [-h] [-k] [-k] [-p -p protocol] [protocol] [-r -r randomdev] [randomdev] [-s -s strength] [strength] [-t -t type] [type] [-v -v levellevel] {name}Selects the cryptographic algorithm. The value of - algorithmalgorithm must be one of RSAMD5 (RSA) or RSASHA1, DSA, DH (Diffie Hellman), or HMAC-MD5. These values are case insensitive. @@ -183,9 +207,11 @@ CLASS="OPTION"
Specifies the owner type of the key. The value of - nametypenametype must either be ZONE (for a DNSSEC zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with a host (KEY)), USER (for a key associated with a user(KEY)) or OTHER (DNSKEY). These values are @@ -215,9 +243,11 @@ CLASS="OPTION"
Indicates the use of the key. Indicates the use of the key. typetype must be
one of AUTHCONF, NOAUTHCONF, NOAUTH, or NOCONF. The default
is AUTHCONF. AUTH refers to the ability to authenticate
@@ -342,9 +384,11 @@ CLASS="OPTION"
- + - +
-a] [-a] [-c -c class] [class] [-d -d directory] [directory] [-e -e end-time] [end-time] [-f -f output-file] [output-file] [-g] [-g] [-h] [-h] [-k -k key] [key] [-l -l domain] [domain] [-i -i interval] [interval] [-j -j jitter] [jitter] [-n -n nthreads] [nthreads] [-o -o origin] [origin] [-p] [-p] [-r -r randomdev] [randomdev] [-s -s start-time] [start-time] [-t] [-t] [-v -v level] [level] [-z-z] {zonefile} [key...]keyset files in - directorydirectory as the directory
start-timestart-time is specified, the current time minus 1 hour (to allow for clock skew) is used.
Specify the date and time when the generated RRSIG records - expire. As with start-timestart-time, an absolute time is indicated in YYYYMMDDHHMMSS notation. A time relative to the start time is indicated with +N, which is N seconds from the start time. A time relative to the current time is - indicated with now+N. If no end-timeend-time is specified, 30 days from the start time is used as a default.
When a previously signed zone is passed as input, records - may be resigned. The intervalinterval option specifies the cycle interval as an offset from the current time (in seconds). If a RRSIG record expires after the @@ -346,12 +388,12 @@ CLASS="OPTION" >
The default cycle interval is one quarter of the difference
between the signature end and start times. So if neither
- end-time or end-time or start-timestart-time
are specified, jitterjitter option specifies a
jitter window that will be used to randomize the signature
expire time, thus spreading incremental signature
@@ -389,9 +431,11 @@ CLASS="OPTION"
- + - +
-C -C config-file] [config-file] [-d -d debug-level] [debug-level] [-f] [-f] [-g] [-g] [-i -i pid-file] [pid-file] [-n -n #cpus] [#cpus] [-P -P port] [port] [-p -p port] [port] [-s] [-s] [-t -t directory] [directory] [-u -u user] [user] [-v-v]Use Use config-fileconfig-file as the configuration file instead of the default,
Set the daemon's debug level to Set the daemon's debug level to debug-leveldebug-level. Debugging traces from
Create Create #cpus#cpus worker threads to take advantage of multiple CPUs. If not specified,
Listen for lightweight resolver queries on port - portport. If not specified, the default is port 921.
Send DNS lookups to port Send DNS lookups to port portport. If not specified, the default is port 53. This provides a way of testing the lightweight resolver daemon with a @@ -334,18 +370,22 @@ CLASS="NOTE" >
chroot() to to directorydirectory after
processing the command line arguments, but before
reading the configuration file.
@@ -370,9 +410,9 @@ ALIGN="CENTER"
ALIGN="LEFT"
>
This option should be used in conjunction with the
- -u-u option, as chrooting a process
running as root doesn't enhance security on most
systems; the way
setuid() to to useruser after completing
privileged operations, such as creating sockets that
listen on privileged ports.
diff --git a/bin/named/named.conf.html b/bin/named/named.conf.html
index f0c0028e52..70b1a6b315 100644
--- a/bin/named/named.conf.html
+++ b/bin/named/named.conf.html
@@ -14,16 +14,16 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
-
+
-
+
acl acl string { string { address_match_elementaddress_match_element; ... };
key key domain_namedomain_name {
- algorithm stringstring;
- secret stringstring;
};
masters masters stringstring [ port port integerinteger ] {
- ( masters | masters | ipv4_addressipv4_address [port port integerinteger] |
- ipv6_addressipv6_address [port port integerinteger] ) [ key key stringstring ]; ...
};
server ( server ( ipv4_address[/prefixlen] | ] | ipv6_address[/prefixlen]] ) {
- bogus booleanboolean;
- edns booleanboolean;
- provide-ixfr booleanboolean;
- request-ixfr booleanboolean;
- keys server_keyserver_key;
- transfers integerinteger;
transfer-format ( many-answers | one-answer );
- transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- support-ixfr booleanboolean; // obsolete
};
trusted-keys {
- domain_name domain_name flags flags protocol protocol algorithm algorithm keykey; ...
};
controls {
- inet ( ipv4_address | ipv4_address | ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ]
- allow { address_match_elementaddress_match_element; ... }
[ keys { keys { stringstring; ... } ];
- unix unsupportedunsupported; // not implemented
};
logging {
- channel stringstring {
- file log_filelog_file;
- syslog optional_facilityoptional_facility;
null;
stderr;
- severity log_severitylog_severity;
- print-time booleanboolean;
- print-severity booleanboolean;
- print-category booleanboolean;
};
- category string { string { stringstring; ... };
};
options {
- avoid-v4-udp-ports { portport; ... };
- avoid-v6-udp-ports { portport; ... };
- blackhole { address_match_elementaddress_match_element; ... };
- coresize sizesize;
- datasize sizesize;
- directory quoted_stringquoted_string;
- dump-file quoted_stringquoted_string;
- files sizesize;
- heartbeat-interval integerinteger;
- host-statistics booleanboolean; // not implemented
- host-statistics-max numbernumber; // not implemented
- hostname ( quoted_stringquoted_string | none );
- interface-interval integerinteger;
listen-on [ port port integerinteger ] { ] { address_match_elementaddress_match_element; ... };
listen-on-v6 [ port port integerinteger ] { ] { address_match_elementaddress_match_element; ... };
- match-mapped-addresses booleanboolean;
- memstatistics-file quoted_stringquoted_string;
- pid-file ( quoted_stringquoted_string | none );
- port integerinteger;
- querylog booleanboolean;
- recursing-file quoted_stringquoted_string;
- random-device quoted_stringquoted_string;
- recursive-clients integerinteger;
- serial-query-rate integerinteger;
- server-id ( quoted_stringquoted_string | none |;
- stacksize sizesize;
- statistics-file quoted_stringquoted_string;
- statistics-interval integerinteger; // not yet implemented
- tcp-clients integerinteger;
- tcp-listen-queue integerinteger;
- tkey-dhkey quoted_string quoted_string integerinteger;
- tkey-gssapi-credential quoted_stringquoted_string;
- tkey-domain quoted_stringquoted_string;
- transfers-per-ns integerinteger;
- transfers-in integerinteger;
- transfers-out integerinteger;
- use-ixfr booleanboolean;
- version ( quoted_stringquoted_string | none );
- allow-recursion { address_match_elementaddress_match_element; ... };
- sortlist { address_match_elementaddress_match_element; ... };
- topology { address_match_elementaddress_match_element; ... }; // not implemented
- auth-nxdomain booleanboolean; // default changed
- minimal-responses booleanboolean;
- recursion booleanboolean;
rrset-order {
[ class class stringstring ] [ type type stringstring ]
[ name name quoted_stringquoted_string ] ] string string stringstring; ...
};
- provide-ixfr booleanboolean;
- request-ixfr booleanboolean;
- rfc2308-type1 booleanboolean; // not yet implemented
- additional-from-auth booleanboolean;
- additional-from-cache booleanboolean;
- query-source querysource4querysource4;
- query-source-v6 querysource6querysource6;
- cleaning-interval integerinteger;
- min-roots integerinteger; // not implemented
- lame-ttl integerinteger;
- max-ncache-ttl integerinteger;
- max-cache-ttl integerinteger;
transfer-format ( many-answers | one-answer );
- max-cache-size size_no_defaultsize_no_default;
check-names ( master | slave | response )
( fail | warn | ignore );
- cache-file quoted_stringquoted_string;
- suppress-initial-notify booleanboolean; // not yet implemented
- preferred-glue stringstring;
dual-stack-servers [ port port integerinteger ] {
- ( quoted_stringquoted_string [port port integerinteger] |
- ipv4_addressipv4_address [port port integerinteger] |
- ipv6_addressipv6_address [port port integerinteger] ); ...
}
- edns-udp-size integerinteger;
root-delegation-only [ exclude { exclude { quoted_stringquoted_string; ... } ];
- disable-algorithms string { string { stringstring; ... };
- dnssec-enable booleanboolean;
- dnssec-lookaside string trust-anchor string trust-anchor stringstring;
- dnssec-must-be-secure string string booleanboolean;
- dialup dialuptypedialuptype;
- ixfr-from-differences ixfrdiffixfrdiff;
- allow-query { address_match_elementaddress_match_element; ... };
- allow-query-cache { address_match_elementaddress_match_element; ... };
- allow-transfer { address_match_elementaddress_match_element; ... };
- allow-update { address_match_elementaddress_match_element; ... };
- allow-update-forwarding { address_match_elementaddress_match_element; ... };
- notify notifytypenotifytype;
- notify-source ( ipv4_addressipv4_address | * ) [ port ( port ( integerinteger | * ) ];
- notify-source-v6 ( ipv6_addressipv6_address | * ) [ port ( port ( integerinteger | * ) ];
- notify-delay secondsseconds;
also-notify [ port port integerinteger ] { ( ] { ( ipv4_address | ipv4_address | ipv6_addressipv6_address )
[ port port integerinteger ]; ... };
- allow-notify { address_match_elementaddress_match_element; ... };
forward ( first | only );
forwarders [ port port integerinteger ] {
- ( ipv4_address | ipv4_address | ipv6_addressipv6_address ) [ port port integerinteger ]; ...
};
- max-journal-size size_no_defaultsize_no_default;
- max-transfer-time-in integerinteger;
- max-transfer-time-out integerinteger;
- max-transfer-idle-in integerinteger;
- max-transfer-idle-out integerinteger;
- max-retry-time integerinteger;
- min-retry-time integerinteger;
- max-refresh-time integerinteger;
- min-refresh-time integerinteger;
- multi-master booleanboolean;
- sig-validity-interval integerinteger;
- transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- alt-transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- alt-transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- use-alt-transfer-source booleanboolean;
- zone-statistics booleanboolean;
- key-directory quoted_stringquoted_string;
- allow-v6-synthesis { address_match_elementaddress_match_element; ... }; // obsolete
- deallocate-on-exit booleanboolean; // obsolete
- fake-iquery booleanboolean; // obsolete
- fetch-glue booleanboolean; // obsolete
- has-old-clients booleanboolean; // obsolete
- maintain-ixfr-base booleanboolean; // obsolete
- max-ixfr-log-size sizesize; // obsolete
- multiple-cnames booleanboolean; // obsolete
- named-xfer quoted_stringquoted_string; // obsolete
- serial-queries integerinteger; // obsolete
- treat-cr-as-space booleanboolean; // obsolete
- use-id-pool booleanboolean; // obsolete
};
view view string string optional_classoptional_class {
- match-clients { address_match_elementaddress_match_element; ... };
- match-destinations { address_match_elementaddress_match_element; ... };
- match-recursive-only booleanboolean;
- key stringstring {
- algorithm stringstring;
- secret stringstring;
};
- zone string string optional_classoptional_class {
...
};
- server ( ipv4_address[/prefixlen] | ] | ipv6_address[/prefixlen]] ) {
...
};
trusted-keys {
- string string integer integer integer integer integer integer quoted_stringquoted_string; ...
};
- allow-recursion { address_match_elementaddress_match_element; ... };
- sortlist { address_match_elementaddress_match_element; ... };
- topology { address_match_elementaddress_match_element; ... }; // not implemented
- auth-nxdomain booleanboolean; // default changed
- minimal-responses booleanboolean;
- recursion booleanboolean;
rrset-order {
[ class class stringstring ] [ type type stringstring ]
[ name name quoted_stringquoted_string ] ] string string stringstring; ...
};
- provide-ixfr booleanboolean;
- request-ixfr booleanboolean;
- rfc2308-type1 booleanboolean; // not yet implemented
- additional-from-auth booleanboolean;
- additional-from-cache booleanboolean;
- query-source querysource4querysource4;
- query-source-v6 querysource6querysource6;
- cleaning-interval integerinteger;
- min-roots integerinteger; // not implemented
- lame-ttl integerinteger;
- max-ncache-ttl integerinteger;
- max-cache-ttl integerinteger;
transfer-format ( many-answers | one-answer );
- max-cache-size size_no_defaultsize_no_default;
check-names ( master | slave | response )
( fail | warn | ignore );
- cache-file quoted_stringquoted_string;
- suppress-initial-notify booleanboolean; // not yet implemented
- preferred-glue stringstring;
dual-stack-servers [ port port integerinteger ] {
- ( quoted_stringquoted_string [port port integerinteger] |
- ipv4_addressipv4_address [port port integerinteger] |
- ipv6_addressipv6_address [port port integerinteger] ); ...
};
- edns-udp-size integerinteger;
root-delegation-only [ exclude { exclude { quoted_stringquoted_string; ... } ];
- disable-algorithms string { string { stringstring; ... };
- dnssec-enable booleanboolean;
- dnssec-lookaside string trust-anchor string trust-anchor stringstring;
- dnssec-must-be-secure string string booleanboolean;
- dialup dialuptypedialuptype;
- ixfr-from-differences ixfrdiffixfrdiff;
- allow-query { address_match_elementaddress_match_element; ... };
- allow-query-cache { address_match_elementaddress_match_element; ... };
- allow-transfer { address_match_elementaddress_match_element; ... };
- allow-update { address_match_elementaddress_match_element; ... };
- allow-update-forwarding { address_match_elementaddress_match_element; ... };
- notify notifytypenotifytype;
- notify-source ( ipv4_addressipv4_address | * ) [ port ( port ( integerinteger | * ) ];
- notify-source-v6 ( ipv6_addressipv6_address | * ) [ port ( port ( integerinteger | * ) ];
- notify-delay secondsseconds;
also-notify [ port port integerinteger ] { ( ] { ( ipv4_address | ipv4_address | ipv6_addressipv6_address )
[ port port integerinteger ]; ... };
- allow-notify { address_match_elementaddress_match_element; ... };
forward ( first | only );
forwarders [ port port integerinteger ] {
- ( ipv4_address | ipv4_address | ipv6_addressipv6_address ) [ port port integerinteger ]; ...
};
- max-journal-size size_no_defaultsize_no_default;
- max-transfer-time-in integerinteger;
- max-transfer-time-out integerinteger;
- max-transfer-idle-in integerinteger;
- max-transfer-idle-out integerinteger;
- max-retry-time integerinteger;
- min-retry-time integerinteger;
- max-refresh-time integerinteger;
- min-refresh-time integerinteger;
- multi-master booleanboolean;
- sig-validity-interval integerinteger;
- transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- alt-transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- alt-transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- use-alt-transfer-source booleanboolean;
- zone-statistics booleanboolean;
- key-directory quoted_stringquoted_string;
- allow-v6-synthesis { address_match_elementaddress_match_element; ... }; // obsolete
- fetch-glue booleanboolean; // obsolete
- maintain-ixfr-base booleanboolean; // obsolete
- max-ixfr-log-size sizesize; // obsolete
};
zone zone string string optional_classoptional_class {
type ( master | slave | stub | hint |
forward | delegation-only );
- file quoted_stringquoted_string;
masters [ port port integerinteger ] {
- ( mastersmasters |
- ipv4_addressipv4_address [port port integerinteger] |
- ipv6_addressipv6_address [ port port integerinteger ] ) [ key key stringstring ]; ...
};
- database stringstring;
- delegation-only booleanboolean;
check-names ( fail | warn | ignore );
- dialup dialuptypedialuptype;
- ixfr-from-differences booleanboolean;
- journal quoted_stringquoted_string;
- allow-query { address_match_elementaddress_match_element; ... };
- allow-transfer { address_match_elementaddress_match_element; ... };
- allow-update { address_match_elementaddress_match_element; ... };
- allow-update-forwarding { address_match_elementaddress_match_element; ... };
update-policy {
- ( grant | deny ) stringstring
- ( name | subdomain | wildcard | self ) stringstring
- rrtypelistrrtypelist; ...
};
- notify notifytypenotifytype;
- notify-source ( ipv4_addressipv4_address | * ) [ port ( port ( integerinteger | * ) ];
- notify-source-v6 ( ipv6_addressipv6_address | * ) [ port ( port ( integerinteger | * ) ];
- notify-delay secondsseconds;
also-notify [ port port integerinteger ] { ( ] { ( ipv4_address | ipv4_address | ipv6_addressipv6_address )
[ port port integerinteger ]; ... };
- allow-notify { address_match_elementaddress_match_element; ... };
forward ( first | only );
forwarders [ port port integerinteger ] {
- ( ipv4_address | ipv4_address | ipv6_addressipv6_address ) [ port port integerinteger ]; ...
};
- max-journal-size size_no_defaultsize_no_default;
- max-transfer-time-in integerinteger;
- max-transfer-time-out integerinteger;
- max-transfer-idle-in integerinteger;
- max-transfer-idle-out integerinteger;
- max-retry-time integerinteger;
- min-retry-time integerinteger;
- max-refresh-time integerinteger;
- min-refresh-time integerinteger;
- multi-master booleanboolean;
- sig-validity-interval integerinteger;
- transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- alt-transfer-source ( ipv4_addressipv4_address | * )
[ port ( port ( integerinteger | * ) ];
- alt-transfer-source-v6 ( ipv6_addressipv6_address | * )
[ port ( port ( integerinteger | * ) ];
- use-alt-transfer-source booleanboolean;
- zone-statistics booleanboolean;
- key-directory quoted_stringquoted_string;
- ixfr-base quoted_stringquoted_string; // obsolete
- ixfr-tmp-file quoted_stringquoted_string; // obsolete
- maintain-ixfr-base booleanboolean; // obsolete
- max-ixfr-log-size sizesize; // obsolete
- pubkey integer integer integer integer integer integer quoted_stringquoted_string; // obsolete
};
-4] [-4] [-6] [-6] [-c -c config-file] [config-file] [-d -d debug-level] [debug-level] [-f] [-f] [-g] [-g] [-n -n #cpus] [#cpus] [-p -p port] [port] [-s] [-s] [-t -t directory] [directory] [-u -u user] [user] [-v] [-v] [-x -x cache-filecache-file] Use IPv4 only even if the host machine is capable of IPv6.
- -4 and -4 and -6-6 are mutually
exclusive.
Use IPv6 only even if the host machine is capable of IPv4.
- -4 and -4 and -6-6 are mutually
exclusive.
Use Use config-fileconfig-file as the configuration file instead of the default, directorydirectory option in the configuration - file, config-fileconfig-file should be an absolute pathname.
Set the daemon's debug level to Set the daemon's debug level to debug-leveldebug-level. Debugging traces from
Create Create #cpus#cpus worker threads to take advantage of multiple CPUs. If not specified,
Listen for queries on port Listen for queries on port portport. If not specified, the default is port 53.
chroot() to to directorydirectory after
processing the command line arguments, but before
reading the configuration file.
@@ -354,9 +390,9 @@ ALIGN="CENTER"
ALIGN="LEFT"
>
This option should be used in conjunction with the
- -u-u option, as chrooting a process
running as root doesn't enhance security on most
systems; the way
setuid() to to useruser after completing
privileged operations, such as creating sockets that
listen on privileged ports.
@@ -405,9 +445,9 @@ CLASS="FUNCTION"
>bind() to a
privileged port and set process resource limits.
- Unfortunately, this means that the -u-u
option only works when
Load data from Load data from cache-filecache-file into the cache of the default view.
- + - +-d] [-d] [-y -y keyname:secret | keyname:secret | -k -k keyfile] [keyfile] [-t -t timeout] [timeout] [-u -u udptimeout] [udptimeout] [-r -r udpretries] [udpretries] [-v-v] [filename]The --d-d option makes nsupdate uses the --y-y or --k-k option (with an HMAC-MD5 key) to provide the shared secret needed to generate a TSIG record for authenticating Dynamic DNS update requests. These options are mutually exclusive. With the --k-k option, nsupdate reads the shared secret from the file -keyfilekeyfile, whose name is of the form K{name}.+157.+{random}.key must also be present. When the --y-y option is used, a signature is generated from -keyname:secret.keyname:secret. -keynamekeyname is the name of the key, and -secretsecret is the base64 encoded shared secret. Use of the --y-y option is discouraged because the shared secret is supplied as a command line argument in clear text. @@ -270,9 +280,9 @@ CLASS="REFENTRYTITLE" > or in a history file maintained by the user's shell.
The The -k-k may also be used to specify a SIG(0) key used
to authenticate Dynamic DNS update requests. In this case, the key
specified is not an HMAC-MD5 key.
The The -t-t option sets the maximum time a update request can
take before it is aborted. The default is 300 seconds. Zero can be used
to disable the timeout.
The The -u-u option sets the UDP retry interval. The default is
3 seconds. If zero the interval will be computed from the timeout interval
and number of UDP retries.
The The -r-r option sets the number of UDP retries. The default is
3. If zero only one update request will be made.
Sends all dynamic update requests to the name server
-servernameservername.
When no server statement is provided,
portport
is the port number on
-servernameservername
where the dynamic update requests get sent.
If no port number is specified, the default DNS port number of 53 is
@@ -406,9 +416,9 @@ CLASS="COMMAND"
> Sends all dynamic update requests using the local
-addressaddress.
When no local statement is provided,
@@ -417,9 +427,9 @@ CLASS="COMMAND"
>nsupdate
Specifies that all updates are to be made to the zone
-zonenamezonename.
If no
-zonezone
statement is provided,
Specify the default class.
-If no classclass is specified the default class is
-ININ. Specifies that all updates are to be TSIG signed using the
-keyname keyname Requires that no resource record of any type exists with name
-domain-namedomain-name. Requires that
-domain-namedomain-name
exists (has as at least one resource record, of any type). Requires that no resource record exists of the specified
-typetype,
-classclass
and
-domain-namedomain-name.
If
-classclass
is omitted, IN (internet) is assumed. This requires that a resource record of the specified
-typetype,
-classclass
and
-domain-namedomain-name
must exist.
If
-classclass
is omitted, IN (internet) is assumed. The
-datadata
from each set of prerequisites of this form
sharing a common
-typetype,
-classclass,
and
-domain-namedomain-name
are combined to form a set of RRs. This set of RRs must
exactly match the set of RRs existing in the zone at the
given
-typetype,
-classclass,
and
-domain-namedomain-name.
The
-datadata
are written in the standard text representation of the resource record's
RDATA. Deletes any resource records named
-domain-namedomain-name.
If
-typetype
and
-datadata
is provided, only matching resource records will be removed.
The internet class is assumed if
-classclass
is not supplied. The
-ttlttl
is ignored, and is only allowed for compatibility. Adds a new resource record with the specified
-ttlttl,
-classclass
and
-datadata.keysecretkeysecret pair.
The key command
overrides any key specified on the command line via
--y or -y or -k-k.-a] [-a] [-b -b keysize] [keysize] [-c -c keyfile] [keyfile] [-h] [-h] [-k -k keyname] [keyname] [-p -p port] [port] [-r -r randomfile] [randomfile] [-s -s address] [address] [-t -t chrootdir] [chrootdir] [-u -u useruser]
- + - +
The The optionsoptions statement contains five clauses.
- The default-serverdefault-server clause is followed by the
name or address of a name server. This host will be used when
no name server is given as an argument to
rndc. The . The default-keydefault-key
clause is followed by the name of a key which is identified by
- a keykey statement. If no
- keyidkeyid is provided on the rndc command line,
- and no keykey clause is found in a matching
- serverserver statement, this default key will be
used to authenticate the server's commands and responses. The
- default-portdefault-port clause is followed by the port
to connect to on the remote name server. If no
- portport option is provided on the rndc command
- line, and no portport clause is found in a
- matching serverserver statement, this default port
will be used to connect.
- The default-source-addressdefault-source-address and
- default-source-address-v6default-source-address-v6 clauses which
can be used to set the IPv4 and IPv6 source addresses
respectively.
After the After the serverserver keyword, the server
statement includes a string which is the hostname or address
for a name server. The statement has three possible clauses:
- key, key, portport and
- addressesaddresses. The key name must match the
name of a key statement in the file. The port number
- specifies the port to connect to. If an addressesaddresses
clause is supplied these addresses will be used instead of
the server name. Each address can take a optional port.
- If an source-address or source-address or source-address-v6source-address-v6
of supplied then these will be used to specify the IPv4 and IPv6
source addresses respectively.
The The keykey statement begins with an identifying
string, the name of the key. The statement has two clauses.
- algorithmalgorithm identifies the encryption algorithm
for rndc.conf file, including the
randomly generated key, will be written to the standard
- output. Commented out keykey and
- controlscontrols statements for
named.conf.
- See the sections on the controlscontrols statement in the
BIND 9 Administrator Reference Manual for details.
-b -b source-address] [source-address] [-c -c config-file] [config-file] [-k -k key-file] [key-file] [-s -s server] [server] [-p -p port] [port] [-V] [-V] [-y -y key_idkey_id] {command}Use Use source-addresssource-address as the source address for the connection to the server. Multiple instances are permitted to allow setting of both @@ -187,15 +203,19 @@ CLASS="REPLACEABLE"
Use Use config-fileconfig-file as the configuration file instead of the default,
Use Use key-filekey-file as the key file instead of the default, /etc/rndc.key will be used to authenticate - commands sent to the server if the config-fileconfig-file does not exist.
serverserver is the name or address of the server which matches a server statement in the configuration file for @@ -254,16 +284,20 @@ CLASS="COMMAND"
Send commands to TCP port - portport instead of BIND 9's default control channel port, 953.
Use the key Use the key keyidkeyid from the configuration file. - keyidkeyid must be known by named with the same algorithm and secret string in order for control message validation to succeed. - If no keyidkeyid is specified,
There is currently no way to provide the shared secret for a - key_idkey_id without using the configuration file.
+
Fixed WidthFixed Width
Fixed WidthFixed Width
For instance, consider the For instance, consider the example.comexample.com domain which includes names -such as host.aaa.example.comhost.aaa.example.com and -host.bbb.example.comhost.bbb.example.com even though -the example.comexample.com zone includes -only delegations for the aaa.example.comaaa.example.com and -bbb.example.combbb.example.com zones. A zone can map exactly to a single domain, but could also include only part of a domain, the rest of which could be delegated to other diff --git a/doc/arm/Bv9ARM.ch02.html b/doc/arm/Bv9ARM.ch02.html index e7b38428cd..d30ea46e1e 100644 --- a/doc/arm/Bv9ARM.ch02.html +++ b/doc/arm/Bv9ARM.ch02.html @@ -1,11 +1,11 @@ - +
wwwwww
600600
ININ
AA
10.0.0.110.0.0.1
600600
ININ
AA
10.0.0.210.0.0.2
600600
ININ
AA
10.0.0.310.0.0.3
The usual simple use of dig will take the form
host [-aCdlrTwv] [-c [-aCdlrTwv] [-c class] [-N class] [-N ndots] [-t ndots] [-t type] [-W type] [-W timeout] [-R timeout] [-R retries] retries] hostname [hostname [serverserver]For more information and a list of available commands and @@ -560,9 +588,11 @@ the name and requested information for a host or domain.
nslookup [-option...] [ [-option...] [host-to-findhost-to-find | - [server]]Interactive mode is entered when no arguments are given (the @@ -625,12 +655,16 @@ CLASS="filename" >named-checkconf [-t [-t directory] [directory] [filenamefilename]
and it had an identical key statement for
-rndc_keyrndc_key. Running the
+
* IN MX 10 external1.example.com.* IN MX 10 external1.example.com.
Now that they accept mail on behalf of anything in the internal @@ -528,24 +532,24 @@ internal clients will now be able to:
Look up any hostnames in the Look up any hostnames in the site1site1 and -site2.example.comsite2.example.com zones.
Look up any hostnames in the Look up any hostnames in the site1.internalsite1.internal and -site2.internalsite2.internal domains.
Look up any hostnames in the Look up any hostnames in the site1site1 and -site2.example.comsite2.example.com zones.
Exchange mail with anyone in the Exchange mail with anyone in the site1site1 and -site2.example.comsite2.example.com zones.
Key: La/E5CjG9O+os1jq0a2jdA==
The string "The string "La/E5CjG9O+os1jq0a2jdA==La/E5CjG9O+os1jq0a2jdA==" can be used as the shared secret.
keyset files corresponding to secure subzones should be present. The zone signer will - generate NSEC and NSEC and RRSIGRRSIG - records for the zone, as well as DSDS for - the child zones if '-d''-d' is specified. - If '-d''-d' is not specified then DS RRsets for the secure child zones need to be added manually.
will also produce a keyset and dsset files and optionally a dlvset file. These are used to provide the parent zone administators with the - DNSKEYs (or their corresponding DNSKEYs (or their corresponding DSDS records) that are the secure entry point to the zone.
It is recommended that IPv4-in-IPv6 mapped addresses not be used. If a host has an IPv4 address, use an A record, not - a AAAA, with ::ffff:192.168.42.1::ffff:192.168.42.1 as the address.
When looking up an address in nibble format, the address components are simply reversed, just as in IPv4, and - ip6.arpa.ip6.arpa. is appended to the resulting name. For example, the following would provide reverse name lookup for a host with address - 2001:db8::12001:db8::1.
+The BIND 9 Lightweight Resolver +BIND 9 Configuration Reference
acl_nameacl_nameININ
MXMX
2020
mail.backup.org.mail.backup.org.
mail.example.com.mail.example.com.
ININ
AA
10.0.0.110.0.0.1
mail2.example.com.mail2.example.com.
ININ
AA
10.0.0.210.0.0.2
For example:
Mail delivery will be attempted to Mail delivery will be attempted to mail.example.commail.example.com and -mail2.example.commail2.example.com (in -any order), and if neither of those succeed, delivery to mail.backup.orgmail.backup.org will be attempted.
All of these TTLs default to units of seconds, though units -can be explicitly specified, for example, 1h30m1h30m.
$ORIGIN$ORIGIN
2.1.10.in-addr.arpa2.1.10.in-addr.arpa
$ORIGIN domain-namedomain-name [ commentcomment] 33
IN PTR foo.example.com.IN PTR foo.example.com.
$ORIGIN < <
zone-namezone-name>. argument if it is not absolute.$ORIGIN example.com. -WWW CNAME MAIN-SERVERis equivalent to
WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM.WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM.$INCLUDE -filenamefilename [ originorigin ] [ commentcomment ]$TTL -default-ttldefault-ttl [ commentcomment ]
Syntax: $GENERATE range range lhslhs [ttlttl] [classclass] ] type type rhsrhs [ commentcomment ]
$ORIGIN 0.0.192.IN-ADDR.ARPA. $GENERATE 1-2 0 NS SERVER$.EXAMPLE. -$GENERATE 1-127 $ CNAME $.0is equivalent to
0.0.0.192.IN-ADDR.ARPA NS SERVER1.EXAMPLE. 0.0.0.192.IN-ADDR.ARPA. NS SERVER2.EXAMPLE. @@ -11657,7 +12291,7 @@ CLASS="literal" 2.0.0.192.IN-ADDR.ARPA. CNAME 2.0.0.0.192.IN-ADDR.ARPA. ... 127.0.0.192.IN-ADDR.ARPA. CNAME 127.0.0.0.192.IN-ADDR.ARPA. -+- + - +BIND 9 Security Considerations chroot()) by specifying the ") by specifying the "-t-t" option. This can help improve system security by placing BIND is the -ability to run the daemon as an unprivileged user ( -u -u useruser ). We suggest running as an unprivileged user when using the +Troubleshooting +Appendices ftp://www.isi.edu/in-notes/RFCftp://www.isi.edu/in-notes/RFCxxxxxx.txt (where (where xxxxxx is the number of the RFC). RFCs are also available via the Web at +BIND 9 Administrator Reference Manual - + - +lwres lwres_lwres_. To define the standard names, applications must include the header file @@ -142,9 +142,9 @@ CLASS="FILENAME" > which contains macro definitions mapping the standard function names into -lwres_lwres_ prefixed ones. Operating system vendors who integrate the lwres library into their base distributions should rename the functions @@ -201,9 +201,9 @@ sequence of actions.lwres_packet_t, -called pktpkt below.(2) Set
lwres_packet_t (also called (also called, below) as well as a data specific type, such as - + - +pktpktlwres_buffer These functions provide bounds checked access to a region of memory where data is being read or written. They are based on, and similar to, the -isc_buffer_isc_buffer_ functions in the ISC library.lwres_buffer_t -*b*b and assocates it with the memory region of size -lengthlength bytes starting at location -base.base.
respectively increase and decrease the used space in buffer -*b*b by -nn bytes.
lwres_buffer_invalidate()marks the buffer -*b*b as invalid. Invalidating a buffer after use is not required, but makes it possible to catch its possible accidental use.lwres_buffer_firstmakes the consumed region of buffer -*p*p empty by settinglwres_buffer_forward()increases the consumed region of buffer -*b*b by -nn bytes, checking for overflow. Similarly, @@ -441,14 +441,14 @@ CLASS="FUNCTION" >lwres_buffer_back() decreases buffer -bb's consumed region by -nn bytes and checks for underflow.lwres_buffer_getuint8() reads an unsigned 8-bit integer from -*b*b and returns it.
lwres_buffer_putuint8()writes the unsigned 8-bit integer -valval to buffer -*b*b.
except that they respectively read an unsigned 16-bit or 32-bit integer in network byte order from -bb. Similarly,lwres_buffer_putuint32()writes the unsigned 16-bit or 32-bit integer -valval to buffer -bb, in network byte order.lwres_buffer_putmem() copies -lengthlength bytes of memory at -basebase to -bb. Conversely,
lwres_buffer_getmem()copies -lengthlength bytes of memory from -bb to -basebase.lwres_config lwres_conf_t structure for lightweight resolver context -ctxctx.
lwres_conf_t structure in resolver context -ctxctx.
lwres_conf_parse()opens the file -filenamefilename and parses it to initialise the resolver context -ctxctx's lwres_conf_t structure for resolver context -ctxctx to the FILE -fpfp.LWRES_R_SUCCESS if it successfully read and parsed -filenamefilename. It returns LWRES_R_FAILURE if -filenamefilename could not be opened or contained incorrect resolver statements. - + - +lwres_context lwres_context_t is returned through -contextpcontextp, a pointer to a @@ -172,25 +172,25 @@ CLASS="TYPE" >When the lightweight resolver needs to perform dynamic memory allocation, it will call -malloc_functionmalloc_function to allocate memory and -free_functionfree_function to free it. If -malloc_functionmalloc_function and -free_functionfree_function are NULL, memory is allocated using @@ -205,36 +205,36 @@ CLASS="REFENTRYTITLE" >. It is not permitted to have a NULL -malloc_functionmalloc_function and a non-NULL -free_functionfree_function or vice versa. -argarg is passed as the first parameter to the memory allocation functions. If -malloc_functionmalloc_function and -free_functionfree_function are NULL, -argarg is unused and should be passed as NULL.
and returned via -*contextp*contextp.lwres_context_initserial() sets the serial number for context -*ctx*ctx to -serialserial.
, closing its socket. -contextpcontextpis a pointer to a pointer to the context that is to be destroyed. The pointer will be set to NULL when the context has been destroyed.lwres_context_allocmem()allocates -lenlen bytes of memory and if successful returns a pointer to the allocated storage. @@ -338,14 +338,14 @@ CLASS="FUNCTION" >lwres_context_freemem() frees -lenlen bytes of space starting at location -memmem.
lwres_context_sendrecv()performs I/O for the context -ctxctx. Data are read and written from the context's socket. It writes data from -sendbasesendbase — typically a lightweight resolver query packet — and waits for a reply which is copied to the receive buffer at -recvbaserecvbase. The number of bytes that were written to this receive buffer is returned in -*recvd_len*recvd_len.- + - +lwres_gabn lwres_gabnrequest_render() uses resolver context -ctxctx to convert getaddrbyname request structure -reqreq to canonical format. The packet header structure -pktpkt is initialised and transferred to buffer -bb. The contents of -*req*req are then appended to the buffer in canonical format.lwres_gabnrequest_parse()uses context -ctxctx to convert the contents of packet -pktpkt to a structure. Buffer -bb provides space to be used for storing this structure. When the function succeeds, the resulting @@ -254,9 +254,9 @@ CLASS="TYPE" >lwres_gabnrequest_t is made available through -*structp*structp.lwres_gabnrequest_free()release the memory in resolver context -ctxctx that was allocated to the lwres_gabnrequest_t structures referenced via -structpstructp. Any memory associated with ancillary buffers and strings for those @@ -351,9 +351,9 @@ CLASS="ERRORCODE" >LWRES_R_UNEXPECTEDEND is returned if the available space in the buffer -bb is too small to accommodate the packet header or the - + - +lwres_gai_strerror invalid error code is returned if -ecodeecode is out of range.- + - +
lwres_getaddrinfo lwres_getaddrinfo() is used to get a list of IP addresses and port numbers for host -hostnamehostname and service -servnameservname. The function is the lightweight resolver's implementation of @@ -132,14 +132,14 @@ CLASS="FUNCTION" >getaddrinfo() as defined in RFC2133. -hostnamehostname and -servnameservname are pointers to null-terminated strings or @@ -148,15 +148,15 @@ CLASS="TYPE" >NULL. -hostnamehostname is either a host name or a numeric host address string: a dotted decimal IPv4 address or an IPv6 address. -servnameservname is either a decimal port number or a service name as listed in /etc/services.
hintshints is an optional pointer to a *hints*hints:hostnamehostname is a AI_NUMERICHOST it indicates that -hostnamehostname should be treated as a numeric string defining an IPv4 or IPv6 address and no name resolution should be attempted.
struct addrinfo passed -via hintshints must be zero.A A
hintshints of NULLlwres_getaddrinfo(), -*res*res is a pointer to a linked list of one or more lwres_freeaddrinfo(). -aiai is a pointer to a if an error occurs. If both -hostnamehostname and -servnameservname are - + - +lwres_gethostent lwres_gethostbyname2() look up the hostname -namename.lwres_gethostbyname2()looks for an -address of protocol family afaf: either lwres_gethostbyaddr(). -addraddr is an address of length -lenlen bytes and protocol family -typetype — PF_INETlwres_gethostbyname_r() is a thread-safe function for forward lookups. If an error occurs, an error code is returned in -*error*error. -resbufresbuf is a pointer to a struct @@ -405,13 +405,13 @@ hostentlwres_gethostbyname_r() . -bufbuf is a buffer of length -lenlen bytes which is used to store thestruct hostentreturned in returned inresbufresbuf. Successful calls tolwres_gethostbyname_r()-return resbufresbuf, which is a pointer to the lwres_gethostbyaddr_r() is a thread-safe function -that performs a reverse lookup of address addraddr -which is lenlen bytes long and is of protocol -family typetype — PF_INETPF_INET6. If an error occurs, the error code is returned -in *error*error. The other function parameters are identical to those inlwres_gethostbyname_r(). -resbufresbuf is a pointer to a struct @@ -487,13 +487,13 @@ hostentlwres_gethostbyaddr_r(). -bufbuf is a buffer of length -lenlen bytes which is used to store thestruct hostentreturned in returned inresbufresbuf. Successful calls tolwres_gethostbyaddr_r()return -resbufresbuf, which is a pointer to thelwres_gethostbyaddr_r()return -resbufresbuf, a pointer to the struct @@ -656,9 +656,9 @@ hostentNULL if the lookups fail or if if the lookups fail or ifbufbuf was too small to hold the list of addresses and names referenced by thestruct hostent. If . Ifbufbuf was too small, both- + - +looks up addresses of protocol family -afaf for the hostname -namename. The -flagsflags parameter contains ORed flag bits to specify the types of addresses that are searched @@ -232,9 +232,9 @@ CLASS="CONSTANT" >lwres_getipnode lwres_getipnodebyname()This is used with an -afaf of AF_INET6, and causes IPv4 addresses to be returned as IPv4-mapped IPv6 addresses.
This is used with an -afaf of AF_INET6, and causes all known addresses (IPv6 and IPv4) to be returned. If AI_V4MAPPED is also set, the IPv4 addresses are return as mapped @@ -295,19 +295,19 @@ CLASS="FUNCTION" > performs a reverse lookup of address -srcsrc which is -lenlen bytes long. -afaf denotes the protocol family, typically struct hostent pointer -hehe. Any memory allocated for the @@ -377,9 +377,9 @@ CLASS="FUNCTION" >lwres_getipnodebyaddr() set -*error_num*error_num to an appropriate error code and the function returns a - + - +
lwres_getnameinfo struct sockaddrsasa which is -salensalen bytes long. The hostname is of length -hostlenhostlen and is returned via -*host.*host. The maximum length of the hostname is 1025 bytes:.The name of the service associated with the port number in -sa is returned in sa is returned in
*serv.*serv. -It is servlenservlen bytes long. The maximum length of the service name isNI_MAXSERV- 32 bytes.The The
flagsflags argument sets the following bits:- + - +
lwres_getrrsetbyname lwres_getrrsetbyname() gets a set of resource records associated with a -hostnamehostname, -classclass, and -typetype. -hostnamehostname is a pointer a to null-terminated string. The -flagsflags field is currently unused and must be zero.lwres_getrrsetbyname(), -*res*res is a pointer to an lwres_freerrset(). -rrsetrrset is a pointer to a - + - +
LWRES_R_UNEXPECTEDEND is returned if the available space in the buffer -bb is too small to accommodate the packet header or the - + - +lwres_gnba lwres_gnbarequest_render() uses resolver context -ctxctx to convert getnamebyaddr request structure -reqreq to canonical format. The packet header structure -pktpkt is initialised and transferred to buffer -bb. The contents of -*req*req are then appended to the buffer in canonical format.lwres_gnbarequest_parse()uses context -ctxctx to convert the contents of packet -pktpkt to a structure. Buffer -bb provides space to be used for storing this structure. When the function succeeds, the resulting @@ -246,9 +246,9 @@ CLASS="TYPE" >lwres_gnbarequest_t is made available through -*structp*structp.lwres_gnbarequest_free()release the memory in resolver context -ctxctx that was allocated to the lwres_gnbarequest_t structures referenced via -structpstructp. Any memory associated with ancillary buffers and strings for those structures is also discarded.lwres_hstrerror lwres_herror() prints the string -ss on stderrlwres_hstrerror() returns an appropriate string -for the error code gievn by errerr. The values of the error codes and messages are as follows: diff --git a/lib/lwres/man/lwres_inetntop.html b/lib/lwres/man/lwres_inetntop.html index b359c01466..7588bf1edf 100644 --- a/lib/lwres/man/lwres_inetntop.html +++ b/lib/lwres/man/lwres_inetntop.html @@ -15,16 +15,16 @@ - PERFORMANCE OF THIS SOFTWARE. --> - + - +lwres_inetntop lwres_net_ntop() converts an IP address of -protocol family afaf — IPv4 or IPv6 — -at location srcsrc from network format to its conventional representation as a string. For IPv4 addresses, that string would be a dotted-decimal. An IPv6 address would be represented in colon notation as described in RFC1884.The generated string is copied to The generated string is copied to
dstdst provided -sizesize indicates it is long enough to store the ASCII representation of the address.RETURN VALUES
If successful, the function returns If successful, the function returns
- + - +dstdst: a pointer to a string containing the presentation format of the address.EAFNOSUPPORT if -the protocol family given in afafis not supported.lwres_noop lwres_nooprequest_render() uses resolver -context ctxctx to convert no-op request structure -reqreq to canonical format. The packet header -structure pktpkt is initialised and transferred to -buffer bb. The contents of -*req*req are then appended to the buffer in canonical format.lwres_nooprequest_parse()uses context -ctxctx to convert the contents of packet -pktpkt to a lwres_nooprequest_t -structure. Buffer bb provides space to be used for storing this structure. When the function succeeds, the resulting lwres_nooprequest_t is made available through -*structp*structp.lwres_nooprequest_free()release the memory in -resolver context ctxctx that was allocated to the lwres_nooprequest_t -structures referenced via structpstructp.LWRES_R_UNEXPECTEDEND is returned if the available space in the buffer -bb is too small to accommodate the packet header or the - + - +lwres_packet lwres_lwpacket_t*pkt*pkt in network byte order to the lightweight resolver buffer, -*b*b.
lwres_lwpacket_parseheader()performs the converse operation. It transfers data in network byte order from -buffer *b*b to resolver packet -*pkt*pkt. The contents of the buffer -bb should correspond to a LWRES_R_SUCCESS. If there is insufficient -space to copy data between the buffer *b*b and -lightweight resolver packet *pkt*pkt both functions return - + - +lwres_resutil lwres_string_parse() retrieves a DNS-encoded string starting the current pointer of lightweight resolver buffer -bb: i.e.b->current. When the function returns, the address of the first byte of the -encoded string is returned via *c*c and the -length of that string is given by *len*len. The buffer's current pointer is advanced to point at the character following the string length, the encoded string, and the trailing @@ -138,9 +138,9 @@ CLASS="TYPE" CLASS="FUNCTION" >lwres_addr_parse() extracts an address from the -buffer bb. The buffer's current pointerlwres_getaddrsbyname()to perform foward lookups. -Hostname namename is looked up using the resolver -context ctxctx for memory allocation. -addrtypesaddrtypes is a bitmask indicating which type of addresses are to be looked up. Current values for this bitmask are LWRES_ADDRTYPE_V6 for IPv6 addresses. Results of the -lookup are returned in *structp*structp.
lwres_getnamebyaddr()performs reverse lookups. -Resolver context ctxctx is used for memory allocation. The address type is indicated by -addrtypeaddrtype: LWRES_ADDRTYPE_V4LWRES_ADDRTYPE_V6. The address to be looked up is given -by addraddr and its length is -addrlenaddrlen bytes. The result of the function call -is made available through *structp*structp.LWRES_R_NOTFOUND if the hostname -namename could not be found.