shoestrap/assets/default/bin/domains2ips.sh

8 lines
122 B
Bash
Raw Normal View History

#! /bin/sh
grep -v '^#' "$@" | \
xargs -n1 nslookup | \
awk '/Address: +/ {print $2;}' | \
sort | \
uniq