The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::SenderBase::Query - SenderBase query module

SYNOPSIS

  my $query = Net::SenderBase::Query->new(
      Transport => 'dns',
      Address => $ip,
  );
  my $results = $query->results;

DESCRIPTION

This module is a front-end to initiating the query.

new()

  my $query = Net::SenderBase::Query->new(
      Transport => 'dns',
      Address => $ip,
      Host => 'test.senderbase.org',
      Timeout => 10,
  );

This method constructs a new query object. If an error occurs while constructing the query an exception will be thrown.

The default transport if not given is 'dns'. The transport is not case sensitive.

The Address attribute is required.

The default Host is 'test.senderbase.org'.

The default Timeout is 5 seconds.

results()

  my $results = $query->results();

This method returns a Net::SenderBase::Results object containing the data for this IP address. If there was no data available it returns undef. If an error occured obtaining the results an exception will be thrown.

SEE ALSO

Net::SenderBase::Results