NAME

App::Environ::DNS - AnyEvent::DNS fork safety for App::Environ environment

SYNOPSIS

use App::Environ;
use App::Environ::DNS;

App::Environ->send_event('initialize');

my $pid = fork();
if ($pid) {
  say 'Parent';
}
else {
  say 'Worker';
  App::Environ->send_event('postfork');
  ## Now we have correct AnyEvent::DNS and AnyEvent::DNS::Resolver
}

App::Environ->send_event('finalize:r');

DESCRIPTION

App::Environ::DNS used to get fork safety to AnyEvent::DNS in App::Environ environment.

AUTHOR

Andrey Kuzmin, <kak-tus@mail.ru>

SEE ALSO

https://github.com/kak-tus/App-Environ-DNS.