HNHacker News
TopNewBestAskShowJobs

mr-karan

926 karma · joined March 2, 2015

Interested in Backend, SRE & Distributed Systems.

https://mrkaran.dev

submissionscomments
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Just did: https://github.com/mr-karan/doggo/pull/128

Will release soon

mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
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...

mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
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...

mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
bbs-over-dns is so interesting!

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

mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
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 .
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
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 ?
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Hm it took around 2.9s on my system. Let me see if I can concurrently lookup records for different records and optimise this. Thanks for sharing.

  time doggo google.com A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME CSYNC DHCID DLV
  0.02s user 0.02s system 1% cpu 2.981 total
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Ah yes, but it's a static site, shouldn't be 404ing. Most probably you're hitting `/docs`. I've not setup the redirect of trailing slash. Will do that.

Meanwhile, the docs link is https://doggo.mrkaran.dev/docs/

mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Sorry about that, it was a silly typo on my end. I've just pushed a fix:

  go install github.com/mr-karan/doggo/cmd/doggo@v1.0.2
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Just tried on my Adguard DNS server, I am only getting one entry. I think it's related to your nameserver configuration. Could you try reproducing with specifying a custom one, with @1.1.1.1 or something?

  doggo google.com --short
  142.250.185.238
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Would this be something close to what you're looking for?

  alias doggo-all='doggo $1 A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME CSYNC DHCID DLV DNAME DNSKEY DS EUI48 EUI64 HINFO HIP HTTPS IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM OPENPGPKEY RRSIG RP SIG SMIMEA SOA SRV SSHFP SVCB TLSA TSIG TXT URI ZONEMD ${2:+@$2}'

  doggo-all example.com @1.1.1.1
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Very kind of you, thanks!

Was just mentioning on my other comment[1] about your contributions to the tool.

[1]: https://news.ycombinator.com/item?id=40848420

mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Just pushed a minor patch release. Tagged on main: https://github.com/mr-karan/doggo/commit/8f60428f6ae154918d9...
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Does this command not work?

  go install github.com/mr-karan/doggo/cmd@latest
  go: downloading github.com/mr-karan/doggo v1.0.0
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
It's a DNS client for querying DNS servers.
mr-karan··on Show HN: Doggo – A powerful, human-friendly DNS client for the command line
Thanks! I pretty much did this as a learning/hobby side project. Back in 2021, I was dealing with a lot of K8s clusters and had recently learnt what about ndots[1]. That prompted me to build an easy to use DNS client which can avoid surprises about the host environment.

I've built this using Go, my daily driver. It doesn't use any CLI frameworks, that was mostly out of choice as I didn't want to add external deps unless really required. My favourite part was to build this small help.go[3] utility which renders colored/formatted help text.

Over the time I got some good quality external contributions, especially the one from @jedisct1 for adding DNSCrypt[2] support to it.

Releasing a v1.0 has been on the back burner forever (like, a whole year+ :'). Life, other projects, and probably a bit of procrastination got in the way. Finally sat down last week and forced myself to come up with a deadline to push this out.

[1]: https://mrkaran.dev/posts/ndots-kubernetes/

[2]: https://github.com/mr-karan/doggo/pull/17

[3]: https://github.com/mr-karan/doggo/blob/main/cmd/help.go

mr-karan··on iTerm 3.5.1 removes automatic OpenAI integration, requires opt-in
So, just because some corporate cannot keep up with their IT compliance team with new additions to existing tools in their stack (which is honestly a tedious job), should the OSS stop experimenting and shipping new 'optional' features? There are many developers who use iTerm2 outside of a corporate environment too. I, for one, developed clx[1], which is similar in nature to what iTerm's OpenAI integration is. I am happy to have this built right into my terminal. And the code is open source as well, allowing anyone to audit what actual external API calls are being made.

[1]: https://github.com/mr-karan/clx

mr-karan··on DuckDB Doesn't Need Data to Be a Database
Curious, why not use httpfs extension and directly read multiple parquet files as demonstrated here[1]?

  SELECT *
    FROM read_parquet([
      's3://bucket/file1.parquet',
      's3://bucket/file2.parquet'
    ]);
[1]: https://duckdb.org/docs/extensions/httpfs/s3api#reading
mr-karan··on Exercises to Learn Rust
This is quite interesting! While we're on the topic, does anyone know of a similar set of exercises for learning Golang?
mr-karan··on 1.5M PDFs in 25 Minutes
Co author of the blog post. Quoting from the article

> For the contract note generation job, we spawn about 40 instances in total currently, a mix of c6a.8xlarge, c6a.2xlarge, and c6a.4xlarge.

mr-karan··on Firefly III: A free and open source personal finance manager
While exploring some other self hosted/OSS personal finance tools, found https://github.com/actualbudget/actual to be a promising project too.
mr-karan··on Ask HN: How did you get people to visit your personal blog?
Write about what you’re passionate about. Is there something new that you learnt at your day job? Blog about it. Is there a side project that you’re doing? Blog about things you’re learning with building it. Such kind of articles usually have a niche audience and is generally picked up by community newsletters/forums/search engines. You could also try posting it yourself in various forums by being transparent and honest about the intent behind sharing it. That may help!
mr-karan··on My website is one binary (2022)
With just really minimal efforts of styling, a webpage can be looked so much cleaner. This[1] is a really good example of it. This website is simply unreadable and shows lack of care for their readers, which makes me spend even lesser time on it than I would.

[1]: http://motherfuckingwebsite.com/

mr-karan··on Build your own BitTorrent
Jon Gjengset[1] is currently doing a livestream on the same challenge in Rust, on his YT channel[2].

[1]: https://thesquareplanet.com/

[2]: https://www.youtube.com/watch?v=jSTkEPPiULs

mr-karan··on ClickHouse Keeper: A ZooKeeper alternative written in C++
I've been using Clickhouse Keeper in production environment since it's first release and have been really happy. It makes setting up distributed tables in Clickhouse (replicas/shards) quite easy. The only issues I've seen is when inserting at a super high throughput (>1000/sec writes) which is actually more of a n issue with Clickhouse Merge Table tree settings rather than Keeper itself.

I've also written about it here: https://mrkaran.dev/posts/clickhouse-replication/

mr-karan··on Choose Postgres queue technology
> The workers ask for work when they want it, rather than being constantly listening

Can you elaborate more on this? How do the workers know when they have to process a new job?

Also, am I right in assuming this is typically a single node setup only, as all the files are mounted on a non "share-able" XFS disk?

mr-karan··on Show HN: Paisa – Open-Source Personal Finance Manager
Love this project! I've been trying out Paisa off late and it's been great at just de-cluttering my investments in various assets (which are spread all over).
mr-karan··on Toolship: A more secure workstation
Noted. Yep, valid points. Thanks for explaining!
mr-karan··on Toolship: A more secure workstation
Interesting approach to maintaining a clean dev environment using containers. This approach reminds me of Fedora Silverblue[1] that I’ve been wanting to try. It leverages OSTree for atomic upgrades and rollbacks. Users can run containers for CLI utils using toolbox[2]. This way, the base OS remains pristine, and there's less risk of "dependency hell" or inadvertent “package upgrades gone wrong”.

[1]: https://fedoraproject.org/silverblue/

[2]: https://docs.fedoraproject.org/en-US/fedora-silverblue/toolb...

mr-karan··on Toolship: A more secure workstation
Since the author of this post is making efforts to bind mount specific directories, is that still a legit risk? root inside the container isn’t essentially the same root on host. But yes, UID and GID mappings along with user namespacing will be better.
← PreviousPage 2 of 5Next →