Commit graph

6 commits

Author SHA1 Message Date
Maximilian Bosch
4c5a00ebc0
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-13 12:35:44 +01:00
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
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
Renamed from cmd/doggo/cli/nameservers.go (Browse further)