Created
May 3, 2018 22:25
-
-
Save discarn8/39c4fed5d75fdf08b805e06e1032d22f to your computer and use it in GitHub Desktop.
BASH_dig_network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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