Lurker News

Comments (122) 29 threads

Earlier comments
XiS1 reply#
Would be amazing is this tool would add support for the equivalent of query type ANY
XiS#
Wow, that's really amazing. Will definitely try soon!
steph-123#
An awesome project, I learned about it last year through developing the x-cmd pkg, at that time the latest version was 0.5.7, now it's 1.0.2, it seems necessary to upgrade the version.

Here is a demo video, you can take a look: https://x-cmd.com/pkg/doggo

generalizations1 reply#
From the doggo github readme:

> 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 name dog +go => doggo.

Zambyte#
I do always find it interesting when people just want to add some features, and the language stops them from doing it. I'm so used to bouncing back and forth between code and docs (api docs and language syntax docs depending on my familiarity) that the language itself is basically an implementation detail that I don't really care about. There are very few languages that would even give me pause, let alone avoid modifying the project entirely.
jiehong2 replies#
And dog seems unmaintained, sadly
0xCMP#
Yea a lot of lingering PRs to fix building with OpenSSL or update packages in some way. Last change was ~3 years ago.
bluejekyll#
We have similar utilities in the Hickory DNS project, https://github.com/hickory-dns/hickory-dns/tree/main/util

There’s are a bunch of cli tools: dig like tool called ‘dns’, a stub resolver called ‘resolve’, a recursive resolver called ‘recurse’, and some other random maintenance tools. These are all to make it easier to test certain details outside other people’s dependency trees.
The documentation is a little sparse…

wiseowise5 replies#
Is there any reason why so many of those tools are written in Go? Is it because of a stdlib or just accidental?
keyle#
Go gets it done and for years to come.
aeadio1 reply#
Could be cultural. Go has a lot of exposure in the DevOps / cloud infrastructure space. Lots of stuff like k8s and Terraform (and its providers) are written in Go, and it competes with Python in popularity for internal tooling.
bloopernova#
Yeah exactly. I wrote one orchestration tool in Python, another department used Go. Right now I'm using nodejs simply because that's the main project language and all the developers can help out :)
SushiHippie#
In this case it seems like the creator of this tool already knew golang so he used it.

From the readme:
> It's totally inspired from dog [0] 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 name dog +go => doggo.
[0] https://github.com/ogham/dog

moffkalast#
So the name can be a pun, of course.
lynndotpy2 replies#
Go is produces (mostly) statically compiled binaries by default. No runtime, no interpreter, no dependencies.

Python, Java, JavaScript, C#, etc. can't say the same.

audiodude1 reply#
In my experience, I've always had to install Go and it's ecosystem to `go install foo` for Go programs to work. Is anyone distributing binaries?

Continue this thread — 1 reply

cromka2 replies#
Correct me if I am wrong. but this is the feature of C#/.Net as well as of recent versions.
neonsunset2 replies#
dotnet publish -o . -p:PublishAot=true :)

To be fair, I do not think the author understands what static binaries are and why they may or may not want them, and how what Go does differs to what C/C++ toolchain does. I’d be very surprised if they do, being a Go developer. Next time they will learn another excuse to promote their language.

Continue this thread — 2 replies

lynndotpy#
I'm a C# dev, but I'm not up to date on the latest C#/.Net developments. Could you tell me more?

Specifically, I mean that by default, Rust and Go binaries only rely on libc, so you only need to download the binary and `chmod +x` it (on libc distros). No distro-specific dependencies, no frameworks like `java` or `dotnet`, etc.

Load more comments