WWW::PiHole - Perl interface to Pi-hole
version 0.230690
Get the version string for Pi-hole components
Enable Pi-Hole
Returns the status ('enabled')
Disable Pi-Hole
Returns the status ('disabled')
Get Pi-Hole status
Returns 'enabled' or 'disabled'
Add a domain to the blacklist (by default)
$list can be one of: black, regex_black, white, regex_white
$list
black
regex_black
white
regex_white
URL: http://pi.hole/admin/groups-domains.php
Remove a domain from the blacklist (by default)
AdminLTE API Function: sub
sub
Get the most recently blocked domain name
AdminLTE API: recentBlocked
recentBlocked
Add DNS A record mapping domain name to an IP address
AdminLTE API: customdns AdminLTE Function: addCustomDNSEntry
customdns
addCustomDNSEntry
Remove a custom DNS A record
ie. IP to domain name association
AdminLTE API: customdns AdminLTE Function: deleteCustomDNSEntry
deleteCustomDNSEntry
Get DNS records as an array of two-element arrays (IP and domain)
AdminLTE API: customdns AdminLTE Function: echoCustomDNSEntries
echoCustomDNSEntries
Add DNS CNAME record effectively redirecting one domain to another
AdminLTE API: customcname
customcname
AdminLTE Function: addCustomCNAMEEntry
addCustomCNAMEEntry
See the func.php script
URL: http://localhost/admin/cname_records.php
Remove DNS CNAME record
Get CNAME records as an array of two-element arrays (domain and target)
AdminLTE API: customcname AdminLTE Function: echoCustomDNSEntries
Elvin Aslanov <rwp.primary@gmail.com>
This software is copyright (c) 2023 by Elvin Aslanov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::PiHole, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::PiHole
CPAN shell
perl -MCPAN -e shell install WWW::PiHole
For more information on module installation, please visit the detailed CPAN module installation guide.