Skip to content

Commit

Permalink
Add new cli for converting domains to ip addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
ViViDboarder committed Aug 16, 2023
1 parent b9e665f commit f0c5125
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/default/bin/domains2ips.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/sh

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

0 comments on commit f0c5125

Please sign in to comment.