… | |
… | |
560 | |
560 | |
561 | =over 4 |
561 | =over 4 |
562 | |
562 | |
563 | =item server => [...] |
563 | =item server => [...] |
564 | |
564 | |
565 | A list of server addresses (default: C<v127.0.0.1>) in network format (4 |
565 | A list of server addresses (default: C<v127.0.0.1>) in network format |
566 | octets for IPv4, 16 octets for IPv6 - not yet supported). |
566 | (i.e. as returned by C<AnyEvent::Socket::parse_address> - both IPv4 and |
|
|
567 | IPv6 are supported). |
567 | |
568 | |
568 | =item timeout => [...] |
569 | =item timeout => [...] |
569 | |
570 | |
570 | A list of timeouts to use (also determines the number of retries). To make |
571 | A list of timeouts to use (also determines the number of retries). To make |
571 | three retries with individual time-outs of 2, 5 and 5 seconds, use C<[2, |
572 | three retries with individual time-outs of 2, 5 and 5 seconds, use C<[2, |
… | |
… | |
580 | The number of dots (default: C<1>) that a name must have so that the resolver |
581 | The number of dots (default: C<1>) that a name must have so that the resolver |
581 | tries to resolve the name without any suffixes first. |
582 | tries to resolve the name without any suffixes first. |
582 | |
583 | |
583 | =item max_outstanding => $integer |
584 | =item max_outstanding => $integer |
584 | |
585 | |
585 | Most name servers do not handle many parallel requests very well. This option |
586 | Most name servers do not handle many parallel requests very well. This |
586 | limits the number of outstanding requests to C<$n> (default: C<10>), that means |
587 | option limits the number of outstanding requests to C<$integer> |
587 | if you request more than this many requests, then the additional requests will be queued |
588 | (default: C<10>), that means if you request more than this many requests, |
588 | until some other requests have been resolved. |
589 | then the additional requests will be queued until some other requests have |
|
|
590 | been resolved. |
589 | |
591 | |
590 | =item reuse => $seconds |
592 | =item reuse => $seconds |
591 | |
593 | |
592 | The number of seconds (default: C<300>) that a query id cannot be re-used |
594 | The number of seconds (default: C<300>) that a query id cannot be re-used |
593 | after a timeout. If there as no time-out then query id's can be reused |
595 | after a timeout. If there as no time-out then query id's can be reused |