DNS::BL::cmds::add - Add an entry to the database
use DNS::BL::cmds::add;
This module implements the add command, used to include entries into a DNSBL managed by DNS::BL. The general syntax of this command, is as follows
add ip <ip-address> [code <return-code>] [text <text>] [time <timestamp>]
where each argument has the following function:
Specifies which IP address or network this command refers to. Essentially, anything that NetAddr::IP will understand.
The value returned by the DNSBL when a match with this entry is found. Usually, this is something that can be returned in a DNS A RR, an IP address. If not specified, '127.0.0.1' will be used as a default.
The text associated with this entry in the DNSBL. Usually this is associated with a DNS TXT RR. Defaults to an empty string.
The time associated with this entry in seconds since the epoch. Defaults to the current time. Some converters might add this item to the text description.
This functionality is provided by the following method:
->execute()
See DNS::BL::cmds for information on this method's general purpose and calling convention.
This method implements the behavior specified above.
None by default.
$Log: add.pm,v $ Revision 1.3 2004/10/12 18:14:27 lem Added collision check
Revision 1.2 2004/10/12 17:44:46 lem Updated docs. Added print with format
Revision 1.1 2004/10/11 21:16:34 lem Basic db and commands added
Perl(1), DNS::BL.
Luis Muñoz, <luismunoz@cpan.org>
Copyright 2004 by Luis Muñoz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Muñoz,'. Assuming CP1252
To install DNS::BL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DNS::BL
CPAN shell
perl -MCPAN -e shell install DNS::BL
For more information on module installation, please visit the detailed CPAN module installation guide.