… | |
… | |
34 | |
34 | |
35 | TODO |
35 | TODO |
36 | |
36 | |
37 | =over 4 |
37 | =over 4 |
38 | |
38 | |
|
|
39 | =item EV::DNS::init |
|
|
40 | |
|
|
41 | Called automatically when the module is firts used. Uses resolv.conf |
|
|
42 | and/or some obscure win32 ibterface to initialise the nameservers and |
|
|
43 | other parameters. |
|
|
44 | |
|
|
45 | =item EV::DNS::shutdown $fail_requests = 1 |
|
|
46 | |
|
|
47 | Shuts the DNS client down. |
|
|
48 | |
|
|
49 | =item $str = EV::DNS::err_to_string $errnum |
|
|
50 | |
|
|
51 | =item EV::DNS::nameserver_add $adress_as_unteger |
|
|
52 | |
|
|
53 | Use unpack "N", Socket::inet_aton "address". |
|
|
54 | |
|
|
55 | =item $count = EV::DNS::count_nameservers |
|
|
56 | |
|
|
57 | =item int EV::DNS::clear_nameservers_and_suspend |
|
|
58 | |
|
|
59 | =item int EV::DNS::resume |
|
|
60 | |
|
|
61 | =item int EV::DNS::nameserver_ip_add $address |
|
|
62 | |
|
|
63 | =item int EV::DNS::resolve_ipv4 $hostname, $flags, $cb->($result, $type, $ttl, @addrs); |
|
|
64 | |
|
|
65 | =item int EV::DNS::resolve_ipv6 $hostname, $flags, $cb->($result, $type, $ttl, @addrs); |
|
|
66 | |
|
|
67 | resolve ipv6 crashes your program in libevent versions up and including at leats 1.3e. |
|
|
68 | |
|
|
69 | =item int EV::DNS::resolve_reverse $4_or_6_bytes, $flagsm $cb->($result, $type, $ttl, @domains) |
|
|
70 | |
|
|
71 | =item int EV::DNS::set_option $optionname, $value, $flags |
|
|
72 | |
|
|
73 | EV::DNS::set_option "ndots:", "4" |
|
|
74 | |
|
|
75 | =item int EV::DNS::resolv_conf_parse $flags, $filename |
|
|
76 | |
|
|
77 | =item int EV::DNS::config_windows_nameservers |
|
|
78 | |
|
|
79 | =item EV::DNS::search_clear |
|
|
80 | |
|
|
81 | =item EV::DNS::search_add $domain |
|
|
82 | |
|
|
83 | =item EV::DNS::search_ndots_set $ndots |
|
|
84 | |
39 | =back |
85 | =back |
40 | |
|
|
41 | |
86 | |
42 | =head1 BUGS |
87 | =head1 BUGS |
43 | |
88 | |
44 | * At least up to version 1.3e of libevent, resolve_reverse_ipv6 will |
89 | * At least up to version 1.3e of libevent, resolve_reverse_ipv6 will |
45 | always crash the program with an assertion failure. |
90 | always crash the program with an assertion failure. |