Skip to content

Instantly share code, notes, and snippets.

@discarn8
Created May 3, 2018 22:25
Show Gist options
  • Select an option

  • Save discarn8/39c4fed5d75fdf08b805e06e1032d22f to your computer and use it in GitHub Desktop.

Select an option

Save discarn8/39c4fed5d75fdf08b805e06e1032d22f to your computer and use it in GitHub Desktop.
BASH_dig_network
#!/bin/bash
NET=192.168.0
for n in $(seq 1 254); do
ADDR=${NET}.${n}
echo -e "${ADDR}\t$(dig -x ${ADDR} +short)"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment