Skip to content


dns thingsā€¦ okay?

host level dns resolution

things like dig and dog use their own mechanism, sometimes, for debugging things you might want to do a lookup how the OS would do it:


getent ahosts


dscacheutil -q host -a name

query dns over tls (dot)

want to test dns over tls? there's dog and possibly dig available to test things:

dog --tls
dig +tls

dns query over http api (doh)

curl -s --http2 -H 'accept: application/dns-json'

just get the answer bit, with jq

curl -s --http2 -H 'accept: application/dns-json' | jq .Answer