… | |
… | |
3 | |
3 | |
4 | SYNOPSIS |
4 | SYNOPSIS |
5 | use EV; |
5 | use EV; |
6 | use EV::ADNS; |
6 | use EV::ADNS; |
7 | |
7 | |
8 | EV::ADNS::submit "example.com", EV::ADNS::r_a, 0, sub { |
8 | EV::ADNS::submit "example.com", EV::ADNS::r_addr, 0, sub { |
9 | my ($status, $expires, @a) = @_; |
9 | my ($status, $expires, @a) = @_; |
10 | warn $a[0]; # "127.13.166.3" etc. |
10 | warn $a[0]; # "127.13.166.3" etc. |
11 | }; |
11 | }; |
12 | |
12 | |
13 | EV::loop; |
13 | EV::loop; |
… | |
… | |
50 | |
50 | |
51 | The format of result records varies considerably, here is some |
51 | The format of result records varies considerably, here is some |
52 | cursory documentation of how each record will look like, depending |
52 | cursory documentation of how each record will look like, depending |
53 | on the query type: |
53 | on the query type: |
54 | |
54 | |
55 | EV::ADNS::rr_a |
55 | EV::ADNS::r_a, EV::ADNS::r_addr |
56 | An IPv4 address in dotted quad (string) form. |
56 | An IPv4 address in dotted quad (string) form. |
57 | |
57 | |
58 | EV::ADNS::r_ns_raw, EV::ADNS::r_cname, EV::ADNS::r_ptr, |
58 | EV::ADNS::r_ns_raw, EV::ADNS::r_cname, EV::ADNS::r_ptr, |
59 | EV::ADNS::r_ptr_raw |
59 | EV::ADNS::r_ptr_raw |
60 | The resource record as a simple string. |
60 | The resource record as a simple string. |