IPB
>  Man Pages > Linux > openSUSE 10.2 > Section 3 > Mail::SpamAssassin::DnsResolver man page

Mail::SpamAssassin::DnsResolver man page

Section 3 - openSUSE 10.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


Mail::SpamAssassin::DnUseroContributed Perl Mail::SpamAssassin::DnsResolver(3)



NAME
       Mail::SpamAssassin::DnsResolver - DNS resolution engine

DESCRIPTION
       This is a DNS resolution engine for SpamAssassin, implemented in order
       to reduce file descriptor usage by Net::DNS and avoid a response colli-
       sion bug in that module.

METHODS
       $res->load_resolver()
           Load the "Net::DNS::Resolver" object.  Returns 0 if Net::DNS cannot
           be used, 1 if it is available.

       $resolver = $res->get_resolver()
           Return the "Net::DNS::Resolver" object.

       $res->nameservers()
           Wrapper for Net::DNS::Reslolver->nameservers to get or set list of
           nameservers

       $res->connect_sock()
           Re-connect to the first nameserver listed in "/etc/resolv.conf" or
           similar platform-dependent source, as provided by "Net::DNS".

       $res->get_sock()
           Return the "IO::Socket::INET" object used to communicate with the
           nameserver.

       $packet = new_dns_packet ($host, $type, $class)
           A wrapper for "Net::DNS::Packet::new()" which traps a die thrown by
           it.

           To use this, change calls to "Net::DNS::Resolver::bgsend" from:

               $res->bgsend($hostname, $type);

           to:

               $res->bgsend(Mail::SpamAssassin::DnsResolver::new_dns_packet($hostname, $type, $class));

       $id = $res->bgsend($host, $type, $class, $cb)
           Quite similar to "Net::DNS::Resolver::bgsend", except that when a
           response packet eventually arrives, and "poll_responses" is called,
           the callback sub reference $cb will be called.

           Note that $type and $class may be "undef", in which case they will
           default to "A" and "IN", respectively.

           The callback sub will be called with two arguments -- the packet
           that was delivered and an id string that fingerprints the query
           packet and the expected reply.  It is expected that a closure call-
           back be used, like so:

             my $id = $self->{resolver}->bgsend($host, $type, undef, sub {
                   my $reply = shift;
                   my $reply_id = shift;
                   $self->got_a_reply ($reply, $reply_id);
                 });

           The callback can ignore the reply as an invalid packet sent to the
           listening port if the reply id does not match the return value from
           bgsend.

       $nfound = $res->poll_responses()
           See if there are any "bgsend" response packets ready, and return
           the number of such packets delivered to their callbacks.

       $res->bgabort()
           Call this to release pending requests from memory when aborting
           backgrounded requests

       $packet = $res->send($name, $type, $class)
           Emulates "Net::DNS::Resolver::send()".

       $res->finish_socket()
           Reset socket when done with it.

       $res->finish()
           Clean up for destruction.



perl v5.8.8                       2006-08-29Mail::SpamAssassin::DnsResolver(3)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Sat Sep 8 16:38:16 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

svn man page (6162 hits)
(FreeBSD 6.2)

sqlite3 man page (5598 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (5045 hits)
(Solaris 10 11_06)

CPAN man page (4791 hits)
(Suse Linux 10.1)

ssh man page (4439 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (3525 hits)
(Solaris 10 11_06)

signal man page (3395 hits)
(Suse Linux 10.1)

netcat man page (3375 hits)
(Suse Linux 10.1)

pprosetup man page (2886 hits)
(Solaris 10 11_06)

startproc man page (2738 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: PYRENEES GOLF HOLIDAYS :: Prototype Electronic Assembly :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum