From f0c51256fc1ede2c539d116b1666230a79c4af8e Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 16 Aug 2023 10:15:00 -0700 Subject: [PATCH] Add new cli for converting domains to ip addresses --- assets/default/bin/domains2ips.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 assets/default/bin/domains2ips.sh diff --git a/assets/default/bin/domains2ips.sh b/assets/default/bin/domains2ips.sh new file mode 100755 index 0000000..ec4a895 --- /dev/null +++ b/assets/default/bin/domains2ips.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +grep -v '^#' "$@" | \ + xargs -n1 nslookup | \ + awk '/Address: +/ {print $2;}' | \ + sort | \ + uniq