PEAR::Net_DNSBL provides an easy way to check if a given Host or URL is listed on an DNS-based Blackhole List (DNSBL, Real-time Blackhole List or RBL) or Spam URI Realtime Blocklist (SURBL).
According to PEAR::Net_DNSBL manual, you may trigger PEAR::Net_DNSBL automatically to check certain IPs that needed.
First of all, you will need to install PEAR::Net_DNSBL as command below,
pear install NET_DNSBL
By referring to the sample script from PEAR::Net_DNSBL manual, I have modified the script to be able to send an email to me when found any IPs range that needed by me as below,
Continue reading How to check DNSBL automatically?