Live data from Hacker News

Show HN: Doggo – A powerful, human-friendly DNS client for the command line

doggo.mrkaran.dev

81–90 of 138 posts

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#81
post #60
post #47

I have a silly question I guess... why does it print everything out twice? ~ doggo google.com NAME TYPE CLASS TTL ADDRESS NAMESERVER google.com. A IN 296s 142.250.67.14 127.0.2.2:53 google.com. A IN 296s 142.250.67.14 127.0.2.3:53 ~ doggo news.ycombinator.com NAME TYPE CLASS TTL ADDRESS NAMESERVER news.ycombinator.com. A IN 1s 209.216.230.207 127.0.2.2:53 news.ycombinator.com. A IN 1s 209.216.230.207 127.0.2.3:53

Looks like once per nameserver that you're configured to use. I guess just in case they give different answers, which is uncommon in practice.

Would be useful in my unfortunate case where the ISP's DNS is broken for a bunch of domains. Most notably githubusercontent.com. Also a bunch of CDN domains.

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#82
post #60
post #47

I have a silly question I guess... why does it print everything out twice? ~ doggo google.com NAME TYPE CLASS TTL ADDRESS NAMESERVER google.com. A IN 296s 142.250.67.14 127.0.2.2:53 google.com. A IN 296s 142.250.67.14 127.0.2.3:53 ~ doggo news.ycombinator.com NAME TYPE CLASS TTL ADDRESS NAMESERVER news.ycombinator.com. A IN 1s 209.216.230.207 127.0.2.2:53 news.ycombinator.com. A IN 1s 209.216.230.207 127.0.2.3:53

Looks like once per nameserver that you're configured to use. I guess just in case they give different answers, which is uncommon in practice.

Oh man, if I had a penny for every time this issue came up, my grandchildren wouldn't have to work a day in their lives.

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#84

Is this related to Dog [1]? They look almost identical in functionality. Both ask for the specific query to run (A, AAAA, etc.). Why not default to query all records? (at least when querying a single domain). -- 1: https://github.com/mr-karan/doggo

What does "all records" mean though? `dig` defaults to just show A records and I've kept the behaviour same. Do you mean all possible record types under the sun, or just a bunch of common ones? `MX, AAAA, A, CNAME, TXT` etc ?

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#85

Is there a way to run the web interface locally? BTW, the "visit demo" link in the docs returns 404.

Sorry the demo link is fixed now: https://doggo.mrkaran.dev/

Yes, you can run the web server locally: https://github.com/mr-karan/doggo/tree/main/web

  cd web
  go run .

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#86

Earlier quoted context omitted.

> "doggo is a modern command-line DNS client (like dig) written in Golang. It outputs information in a neat concise manner and supports protocols like DoH, DoT, DoQ, and DNSCrypt as well. It's totally inspired from dog which is written in Rust. I wanted to add some features to it but since I don't know Rust, I found it as a nice opportunity to experiment with writing a DNS Client from scratch in Go myself. Hence the…

That's pretty cool :) It makes a great visualizer for bbs-over-dns.com

bbs-over-dns is so interesting!

I liked the output of: doggo @bbs-over-dns.com txt bbs-over-dns.com | sort | less

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#87
post #78
post #58

Earlier quoted context omitted.

Is that because it's behind cloudflare? I'm pretty sure it still runs primarily on a single server in a Colo (i.e. except in times of hardware failure or other physical realities).

You’re thinking about news.ycombinator.com, run on a single server from M5, which is not the same as ycombinator.com. > dig +short news.ycombinator.com 209.216.230.207 > ipinfo 209.216.230.207 { "ip": "209.216.230.207", "hostname": "news.ycombinator.com", "city": "San Diego", "region": "California", "country": "US", "loc": "32.7157,-117.1647", "org": "AS21581 M5 Computer Security", "postal": "92101", "timezone": "Ame…

It's also possible to get a copy of HN from Cloudflare in addition to M5. I keep historical DNS data and can confirm there are Cloudlfare IPs that continue to work.

Re: Show HN: Doggo – A powerful, human-friendly DNS client for the command line

#88
post #19

Love this, thank you! Is there a way to query all DNS records? (I was surprised to learn that isn't the default.) This would be really helpful for troubleshooting people's Caddy questions (which are actually DNS problems).

I've just created a PR for supporting common record types: https://github.com/mr-karan/doggo/pull/128

However, each lookup happens serially right now, I'll take a look at making it concurrent per resolver atleast.

Edit: I just pushed the concurrent version of lookups in each resolver. Speed up is quite good around 70-80% on most domains. Will test this more before releasing to main!

https://github.com/mr-karan/doggo/pull/128#issuecomment-2202...

Post reply on HN