Skip to content

Instantly share code, notes, and snippets.

@paulp
Created Aug 15, 2018
Embed
What would you like to do?
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