Skip to content

Instantly share code, notes, and snippets.

@paulp
Created August 15, 2018 23:23
Show Gist options
  • Save paulp/63ebb3bf9b0bdf85305377f3ef9f620d to your computer and use it in GitHub Desktop.
Save paulp/63ebb3bf9b0bdf85305377f3ef9f620d to your computer and use it in GitHub Desktop.
Visibility into chrome's internal dns
#!/usr/bin/env bash
#
output () {
pup 'tbody[id="dns-view-cache-tbody"] tr json{}' \
| jq -r '.[].children[] | select(.tag == "td").text' \
| ag --nocolor --literal .
}
chrome-cli open "chrome://net-internals/#dns" >/dev/null
sleep 1
chrome-cli source | output
chrome-cli close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment