Hacker News new | past | comments | ask | show | jobs | submit login

> dog is a command-line DNS client, like dig. It has colourful output, understands normal command-line argument syntax, supports the DNS-over-TLS and DNS-over-HTTPS protocols, and can emit JSON.

I especially like that last part.




You can also convert dig output to JSON with jc. (Iā€™m the author)

$ jc dig example.com | jq -r '.[].answer[].data'

93.184.216.34

https://github.com/kellyjonbrazil/jc


dog is great. You can build a static Rust binary leveraging rustls with:

  cargo build --release --verbose --target x86_64-unknown-linux-musl --no-default-features --features=with_idna,with_tls,with_https,with_rustls
and...

  alias dog "dog --edns=show --https --nameserver https://mozilla.cloudflare-dns.com/dns-query"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: