Closed roobre closed 2 months ago
Thanks for reporting. Will be fixed in the next release.
$ ./bin/doggo.bin foo.local @0.0.0.0
ERROR[2024-06-28T12:22:34+05:30] Error looking up DNS records error="read udp 127.0.0.1:58165->127.0.0.1:53: read: connection refused"
$ echo $?
9
Seems like there's a bug in doggo, where this condition:
https://github.com/mr-karan/doggo/blob/8492ccdc61f097da3a8e5dcb2080e77650af8d2d/cmd/doggo/cli.go#L166-L168
Never evaluates to true, because here:
https://github.com/mr-karan/doggo/blob/8492ccdc61f097da3a8e5dcb2080e77650af8d2d/cmd/doggo/cli.go#L158-L162
An empty response is always appended to
responses
, makinglen(responses)
always greater than zero.I can reproduce this by running
doggo foo.local @0.0.0.0
, and observingresponses
with a debugger: