2015-03-10 07:39:34 +01:00
|
|
|
AnyEvent::DNS::EtcHosts AnyEvent::DNS behavior to use /etc/hosts
|
|
|
|
|
|
|
|
The DNS lookups are emulated. This resolver returns the standard DNS reply based
|
|
|
|
on /etc/hosts file rather than real DNS.
|
2016-05-19 12:21:23 +02:00
|
|
|
You can choose different file by changing PERL_ANYEVENT_HOSTS
|
2015-03-10 07:39:34 +01:00
|
|
|
environment variable.
|
2016-05-19 12:21:23 +02:00
|
|
|
This module also disables original AnyEvent::Socket's helper function
|
|
|
|
which reads /etc/hosts file after DNS entry was not found.
|
2015-03-10 07:39:34 +01:00
|
|
|
It prevents to read this file twice.
|
2016-05-19 12:21:23 +02:00
|
|
|
The AnyEvent::Socket resolver searches IPv4 and IPv6 addresses separately.
|
|
|
|
If you don't want to check the addresses in DNS, both IPv4 and IPv6 addresses
|
|
|
|
should be placed in /etc/hosts or the protocol family should be set explicitly
|
2015-03-10 07:39:34 +01:00
|
|
|
for resolve_sockaddr function.
|