shoestrap/assets/default/bin/domains2ips.sh

8 lines
122 B
Bash
Executable File

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