… | |
… | |
35 | |
35 | |
36 | use AnyEvent (); |
36 | use AnyEvent (); |
37 | use AnyEvent::Handle (); |
37 | use AnyEvent::Handle (); |
38 | use AnyEvent::Util qw(AF_INET6); |
38 | use AnyEvent::Util qw(AF_INET6); |
39 | |
39 | |
40 | our $VERSION = 4.232; |
40 | our $VERSION = 4.33; |
41 | |
41 | |
42 | our @DNS_FALLBACK = (v208.67.220.220, v208.67.222.222); |
42 | our @DNS_FALLBACK = (v208.67.220.220, v208.67.222.222); |
43 | |
43 | |
44 | =item AnyEvent::DNS::a $domain, $cb->(@addrs) |
44 | =item AnyEvent::DNS::a $domain, $cb->(@addrs) |
45 | |
45 | |
… | |
… | |
1116 | |
1116 | |
1117 | push @{ $self->{queue} }, [dns_pack $req, $cb]; |
1117 | push @{ $self->{queue} }, [dns_pack $req, $cb]; |
1118 | $self->_scheduler; |
1118 | $self->_scheduler; |
1119 | } |
1119 | } |
1120 | |
1120 | |
1121 | =item $resolver->resolve ($qname, $qtype, %options, $cb->($rcode, @rr)) |
1121 | =item $resolver->resolve ($qname, $qtype, %options, $cb->(@rr)) |
1122 | |
1122 | |
1123 | Queries the DNS for the given domain name C<$qname> of type C<$qtype>. |
1123 | Queries the DNS for the given domain name C<$qname> of type C<$qtype>. |
1124 | |
1124 | |
1125 | A C<$qtype> is either a numerical query type (e.g. C<1> for A records) or |
1125 | A C<$qtype> is either a numerical query type (e.g. C<1> for A records) or |
1126 | a lowercase name (you have to look at the source to see which aliases are |
1126 | a lowercase name (you have to look at the source to see which aliases are |