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