Thank you! Your tool works great for IPv4. I couldn't get it to work with IPv6 addresses, as it says: host_to_ip: failed at /usr/lib/x86_64-linux-gnu/perl5/5.36/Net/RawIP.pm line 480. I also had a look at Scapy - looks very powerful indeed. Needs a lot of learning as well :)