Curated Examples
Compare multiple IP addresses
Use PSBlackListChecker to compare DNSBL status across several addresses.
This pattern is useful when you manage a small set of outbound relay addresses and want one table for review.
It is adapted from Examples/Search-Blacklist-Advanced.ps1.
Example
Import-Module PSBlackListChecker
$ipAddresses = @(
'203.0.113.10'
'203.0.113.11'
)
Search-BlackList -IP $ipAddresses -ReturnAll -SortBy Ip |
Format-Table IP, BlackList, IsListed, Answer -AutoSize
What this demonstrates
- checking multiple addresses in one command
- using
-ReturnAllfor a fuller review table - sorting results by IP address