dns
dns
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:
linux:
getent ahosts google.commacos:
dscacheutil -q host -a name google.comquery dns over tls (dot)
want to test dns over tls? there’s dog and possibly dig available to test things:
dog --tls @one.one.one.one ilayk.comdig +tls @one.one.one.one ilayk.comdns query over http api (doh)
curl -s --http2 -H 'accept: application/dns-json' https://1.1.1.1/dns-query?name=ilayk.comjust get the answer bit, with jq
curl -s --http2 -H 'accept: application/dns-json' https://1.1.1.1/dns-query?name=ilayk.com | jq .Answer