https://blog.kamens.us/2022/01/18/adding-malicious-ips-in-dnsbls-to-iptables-automatically/
Adding malicious IPs in DNSBLs to iptables automatically