<!-- markdownlint-disable MD041 -->
<!-- markdownlint-disable MD022 -->
<!-- markdownlint-disable MD026 -->
dig gfz-potsdam.de A # A records only (name -> IP)
dig gfz-potsdam.de A +short # Short output
dig gfz-potsdam.de MX # MX records (mail server)
dig gfz-potsdam.de TXT # TXT records (text)
dig gfz-potsdam.de NS # NS records (name server)
dig gfz-potsdam.de SOA # SOA records (start of authority)
dig gfz-potsdam.de CNAME # CNAME records (alias)
dig -x 139.17.228.189 # Reverse lookup (IP -> name)
dig -x 139.17.228.189 +short
for ip in $(dig +short gfz-potsdam.de A); do
nmap -sS -p 1-65535;
done
dnsmap gfz-potsdam.de # DNS enumeration
##### arp works only on local network
##### my home network is:
ip=192.168.178.20
echo "arping: $ip"
arping -c 3 $ip | grep "reply from" | cut -d" " -f4
Last active
November 30, 2023 18:49
-
-
Save knbknb/8a348d1a340ebe216ed59c2b7aec9984 to your computer and use it in GitHub Desktop.
Cheatsheet for simle common dig commands (bash)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment