Commit Graph

128 Commits (main)

Author SHA1 Message Date
astra db8c7ef8eb Change primary color 2023-03-26 23:58:57 +01:00
astra 1aea2d35a5 Add dark theme 2023-03-26 23:34:06 +01:00
astra 6b9bd48e60 Update import path and dependencies 2023-03-26 23:33:20 +01:00
Karan Sharma 8492ccdc61 chore: build for go 1.19
Closes https://github.com/mr-karan/doggo/issues/62
2023-01-03 17:15:38 +05:30
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
Aliaksandr Belik c21f90c2bc docs: add scoop installation note
Fixes #36.
2022-11-08 10:43:52 +05:30
Karan Sharma 3409971103 chore: fix typo in nameserver flag
Closes https://github.com/mr-karan/doggo/issues/55
2022-10-24 11:14:18 +05:30
Sheogorath 9386c589bf feat(cli): Add dig compatible error exit code 9
This patch implements the error exit code for "No reply from server"
that dig uses to indicate that it was unable to resolve an address due
to the inability to reach any resolver.

References:
https://linux.die.net/man/1/dig
2022-10-19 08:00:48 +05:30
Karan Sharma 0da9178683
Update README.md
Ref https://github.com/mr-karan/doggo/issues/51#issuecomment-1226928372
2022-08-25 15:06:11 +05:30
Karan Sharma 5e611d9706 chore: upgrade go.mod 2022-08-08 12:18:49 +05:30
Zack Gilman 711cb96d9d help.go - Clean up Grammar + Technical Terms
I think "resolver for" should be changed to "query to" if I understand correctly.

Some other minor adjustments that make the help file terminology a bit more uniform.
2022-07-27 12:34:01 +05:30
Zack Gilman 50739e40b3 Add DNS over QUIC (DoQ) to readme 2022-07-27 09:17:56 +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
Rui Chen 218eb0233a docs: add homebrew installation note 2022-06-30 19:56:24 +05:30
Rui Chen c5d0020645 license: add GPL license header
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-06-30 09:02:31 +05:30
AUTUMN 96e11c01a7 Update doq.go 2022-06-20 08:33:40 +05:30
lyekumchew 2008cd9ed9 chore: impl rfc9250 DoQ client 2022-06-20 08:33:40 +05:30
Karan Sharma ea7cb3c6cd fix: fallback to tcp if response is truncated
Based on a report `doggo txt google.com  @udp://1.1.1.1` failed.
This record had 704 bytes as the message length however the response
gets truncated if it exceeds 512 bytes with UDP.

`dig` transparently fallbacks to `tcp`, so this commit adds the same
mechanism.
2022-06-02 14:59:27 +05:30
Karan Sharma 53f7b70af4 feat: add tls config for dot lookups
Ref https://github.com/mr-karan/doggo/issues/29
2022-05-18 09:56:07 +05:30
Karan Sharma 0ce04d0c13 fix: rtt time should include tcp.Dial
Ref https://github.com/mr-karan/doggo/issues/39
2022-05-17 23:34:30 +05:30
Karan Sharma 8d705245a1 chore: update docs 2022-05-17 10:50:26 +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
Karan Sharma 79c5fc7283 ci: fix release 2022-03-24 12:43:33 +05:30
Karan Sharma a855ec4d45 chore: fix docker image tags 2022-03-24 12:30:20 +05:30
Karan Sharma f753e708c5 chore: fix docker tag 2022-03-24 12:18:34 +05:30
Karan Sharma 7ce6ea7c2c chore: upgrade for go 1.18 2022-03-24 11:28:03 +05:30
YYYMagic da13887145 docs: use go install 2022-03-07 19:40:03 +05:30
Karan Sharma 9ae8b0a3f2 chore: fix CI 2021-12-20 22:16:40 +05:30
Karan Sharma b78ee85b04 feat: update docs 2021-12-20 21:45:16 +05:30
lyekumchew a5fe3ae922 feat: add DNS over QUIC support 2021-12-20 21:43:27 +05:30
Ian Bashford 3d7b4a9821 debug logs DOH response headers 2021-08-11 14:08:50 +05:30
Frank Denis ddbf40de9a Update the dnscrypt module to version 2 2021-08-03 10:04:04 +05:30
Karan Sharma 6b42a5ecf0 chore: Restructure package directories 2021-06-25 19:02:00 +05:30
Karan Sharma 68fd19d487 fix: Rename CLI binary
Previously binary was named as doggo-cli.bin, which made it difficult
for users building from source as they had to rename it.
2021-06-25 18:00:57 +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 e5acf1214c fix: prevent app from quitting if one resolver failed 2021-05-18 19:05:47 +05:30
Karan Sharma f1a1e3aae6 refactor: use switch instead of if 2021-04-25 16:13:39 +05:30
Karan Sharma d7e7362b57 chore: delete unused files (api) 2021-04-25 16:13:39 +05:30
Frank Denis 310eb2d126 README.md: add DNSCrypt to the list of protocols 2021-04-24 21:57:57 +05:30
Frank Denis 8dc23ce8f5 DoH: fallback to GET if a 405 HTTP status code is returned
Some servers block POST queries. Retry with GET if we receive a
405 HTTP status code.
2021-04-24 21:47:36 +05:30
Frank Denis 9da51ad997 Full stop 2021-04-24 21:47:00 +05:30
Frank Denis b7e0b497cf Print the server IP address instead of a full DNS stamp
Also allow the sdns scheme in api/index.html
2021-04-24 21:47:00 +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 48fd5bb792 chore: update docs 2021-04-21 11:42:56 +05:30
Karan Sharma 7b858c5a93 feat: Add shell completions for zsh,fish 2021-04-21 11:40:21 +05:30
Karan Sharma 45dd2e2af2 chore: add URL to README 2021-03-11 12:16:21 +05:30
Karan Sharma 6d6e69b8e4 fix: center elements in page 2021-03-11 12:06:17 +05:30
Karan Sharma 50b8093ee1 fix: custom line-height for headers 2021-03-11 11:29:48 +05:30
Karan Sharma d09eb901ec fix: line-height for responsive screens 2021-03-11 00:49:57 +05:30