App-DNS-Adblock

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


            whitelist => '/var/named/whitelist',  #path to exclusions
        );

    A path string to a single column list of hosts. These hosts will be
    removed from the filter.

  host, port
        my $adfilter = App::DNS::Adblock->new( host => $host, port => $port );

    The IP address to bind to. If not defined, the server attempts binding
    to the local ip. The default port is 53.

  forwarders, forwarders_port
        my $adfilter = App::DNS::Adblock->new( forwarders => [ nameserver, ], forwarders_port => $port );

    An arrayref of one or more nameservers to forward any DNS queries to.
    Defaults to nameservers listed in /etc/resolv.conf. The default port is
    53. Windows machines should define a forwarder to avoid the default
    behavior.

lib/App/DNS/Adblock.pm  view on Meta::CPAN


        whitelist => '/var/named/whitelist',  #path to exclusions
    );

A path string to a single column list of hosts. These hosts will be removed from the filter.

=head2 host, port

    my $adfilter = App::DNS::Adblock->new( host => $host, port => $port );

The IP address to bind to. If not defined, the server attempts binding to the local ip.
The default port is 53.

=head2 forwarders, forwarders_port

    my $adfilter = App::DNS::Adblock->new( forwarders => [ nameserver, ], forwarders_port => $port );

An arrayref of one or more nameservers to forward any DNS queries to. Defaults to nameservers 
listed in /etc/resolv.conf. The default port is 53. Windows machines should define a forwarder to avoid 
the default behavior.



( run in 0.954 second using v1.01-cache-2.11-cpan-2398b32b56e )