Commit Graph

10 Commits (main)

Author SHA1 Message Date
astra 6b9bd48e60 Update import path and dependencies 2023-03-26 23:33:20 +01:00
Maximilian Bosch 88c63d6b41 Support literal IPv6 nameservers
This effectively means that `doggo @2001:DB8::53 example.org` works just
like we know it from `dig(1)`. This already works for IPv4 because
`url.Parse` accepts a literal IPv4 address, but not a literal IPv6
address (due to parsing ambiguities with strings that look like an IPv4
address I guess).

This is implemented by checking if the nameserver argument is a valid IP
if the URL validation failed. If that's the case, `ns` is returned
directly with the `[2001:DB8::53]:53` as address (from
`net.JoinHostPort` with the default DNS port) and UDP as protocol (also
the default if not specified).
2022-12-14 11:29:55 +05:30
Gaeulbyul 2cf9e7bf2c fix: Correctly print colored text on Windows
This commit will fix #40.

Replacing os.Stdout with color.Output will fix the problem on Windows's console.

Internally, `color.Output` is same as `colorable.NewColorableStdout()`, according to acd5f3bb28/color.go (L25-L27)

see also: https://godocs.io/github.com/mattn/go-colorable#NewColorableStdout
2022-07-13 16:52:59 +05:30
Karan Sharma eec8374e6f feat: Add short output flag
Ref https://github.com/mr-karan/doggo/issues/35
2022-05-17 10:35:18 +05:30
Karan Sharma 7619cbdeb0 feat: add strategy flag
Ref https://github.com/mr-karan/doggo/issues/35
2022-05-17 10:21:14 +05:30
lyekumchew a5fe3ae922 feat: add DNS over QUIC support 2021-12-20 21:43:27 +05:30
Karan Sharma 9e3656fae9 feat: Add support for reverse DNS lookups
Closes https://github.com/mr-karan/doggo/issues/25
2021-06-25 17:25:04 +05:30
Karan Sharma f1a1e3aae6 refactor: use switch instead of if 2021-04-25 16:13:39 +05:30
Frank Denis 6d2eae4f58 Add support for DNS stamps and for DNSCrypt servers
This allows connections to DoH servers using their stamp, and adds
support for DNSCrypt servers by the way.
2021-04-24 21:47:00 +05:30
Karan Sharma b753631012 feat: refactor app in a separate package 2021-03-02 18:59:55 +05:30