Raspberry Pi Raspbian Stretch

download
https://www.raspberrypi.org/downloads/raspbian/

verify sha256sum

4cdb8ebbbc52a8a3061082d3524b821aa4ad7e0db56413c2a129d96723c0f64d  2018-04-18-raspbian-stretch.img
0e2922e551a895b136f2ea83d1bc0ca71e016e6d50244ba3da52bd764df5d1b6  2018-04-18-raspbian-stretch.zip
5f0a0361cf308bcf2e5aea552fd14ff85582de607bdf9c374e0e18ebaaf6348b  2018-04-18-raspbian-stretch.zip.torrent
5a0747b2bfb8c8664192831b7dc5b22847718a1cb77639a1f3db3683b242dc96  2018-04-18-raspbian-stretch-lite.img
5a0747b2bfb8c8664192831b7dc5b22847718a1cb77639a1f3db3683b242dc96  2018-04-18-raspbian-stretch-lite.zip
d6d0395848e42bc21acd6cf9656cd0a429c710b9bb57af36d927faa7e62d87c9  2018-04-18-raspbian-stretch-lite.zip.torrent

flash sd card

dd if=2018-04-18-raspbian-stretch.img of=/dev/mmblk0 bs=1M

configure raspbian

sudo raspi-config

enable ssh, spi, serial, 1-wire, …

sudo touch /boot/ssh

LEDE / OpenWRT sniff DNS traffic

log into router via ssh

opkg update
opkg install tcpdump
tcpdump -i eth1 -l -vvv dst port 53

save dump

tcpdump -i eth1 -l -vvv dst port 53 >> /tmp/dns.dump
grep -E 'A\?' /tmp/dns.dump  |sed -e 's/^.*A? //' -e 's/ .*//'|sort -u

live dns view

tcpdump -lvi any "udp port 53" 2>/dev/null | grep -E 'A\?' | awk '{print $(NF-1)}'