Skip to content

Instantly share code, notes, and snippets.

@leventyalcin
Created November 27, 2015 10:52
Show Gist options
  • Save leventyalcin/2ec84b032791b9f723aa to your computer and use it in GitHub Desktop.
Save leventyalcin/2ec84b032791b9f723aa to your computer and use it in GitHub Desktop.
#!/bin/bash
tshark -l -2 -R \
'(dns.qry.name == "DOMAINNAME.COM" or dns.qry.name == "SUB.DOMAIN.COM") and dns.response_to' \
-T fields \
-e frame.time \
-e dns.time \
-e dns.qry.name \
-e dns.resp.addr \
>> ALL_DNS_RESULTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment