… | |
… | |
49 | |
49 | |
50 | sub adns_cb { |
50 | sub adns_cb { |
51 | my ($status, $expires, @rr) = @_; |
51 | my ($status, $expires, @rr) = @_; |
52 | if ($status == EV::ADNS::s_ok) { |
52 | if ($status == EV::ADNS::s_ok) { |
53 | use JSON::XS; |
53 | use JSON::XS; |
54 | warn to_json \@rr; |
54 | warn encode_json \@rr; |
55 | } |
55 | } |
56 | } |
56 | } |
57 | |
57 | |
58 | The format of result records varies considerably, here is some cursory |
58 | The format of result records varies considerably, here is some cursory |
59 | documentation of how each record will look like, depending on the query |
59 | documentation of how each record will look like, depending on the query |