NAME
WWW::PiHole - Perl interface to Pi-hole
VERSION
version 0.230630
METHODS
enable()
Enable Pi-Hole
Returns the status ('enabled')
disable()
Disable Pi-Hole
Returns the status ('disabled')
status()
Get Pi-Hole status
Returns 'enabled' or 'disabled'
add
Add domain to the blacklist (by default)
$list
can be one of: black
, regex_black
, white
, regex_white
URL: http://pi.hole/admin/groups-domains.php
remove($domain [, $list])
Add domain to the blacklist (by default)
$list
can be one of: black
, regex_black
, white
, regex_white
AdminLTE API Function: sub
URL: http://pi.hole/admin/groups-domains.php
recent()
Get the most recently blocked domain name
AdminLTE API Function: recentBlocked
add_dns($domain, $ip)
Add DNS A record mapping domain name to an IP address
add_cname($domain, $target)
Add DNS CNAME record effectively redirecting one domain to another
AdminLTE API Functions: customcname
, addCustomCNAMEEntry
See the https://github.com/pi-hole/AdminLTE/blob/master/scripts/pi-hole/php/func.php|func.php script
URL: http://localhost/admin/cname_records.php
AUTHOR
Elvin Aslanov <rwp.primary@gmail.com>
COPYRIGHT AND LICENSE
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.