mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-23 14:46:31 +00:00
Add new cli for converting domains to ip addresses
This commit is contained in:
parent
b9e665f1e8
commit
f0c51256fc
7
assets/default/bin/domains2ips.sh
Executable file
7
assets/default/bin/domains2ips.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
grep -v '^#' "$@" | \
|
||||||
|
xargs -n1 nslookup | \
|
||||||
|
awk '/Address: +/ {print $2;}' | \
|
||||||
|
sort | \
|
||||||
|
uniq
|
Loading…
Reference in New Issue
Block a user