Commit Graph

121 Commits (9386c589bf54828264af1aedfdd9992f0a963a14)

Author SHA1 Message Date
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
Karan Sharma 3dbfb0a866 chore: fix goreleaser hooks 2021-03-11 00:34:40 +05:30
Karan Sharma 3da7852368 fix: Add spacing on label and form fields 2021-03-11 00:30:24 +05:30
Kailash Nadh b8ba782cf3 Refactor web frontend and remove unnecessary dependencies.
- Eliminate frontend JS build step completely:
  (remove dep: NodeJS, npx, tailwind, postcss, autoprefixer)

- Declutter and cleanup index.html (8.49 KB to 3.4 KB) = ~60% savings.

- Replace tailwind with custom CSS (10.64 KB to 1.96 KB) = ~81% savings.

- Remove Google font (~100 KB) as there is very little text on the page.

- Refactor and cleanup main.js and remove tailwind styling logic.
  (2.82 KB to 1.12 KB) = ~60% savings.

- Net static asset reduction = 21.95 KB to 6.48 KB = ~70% savings
  apart from the 100+ KB elimination of Google fonts.
2021-03-11 00:29:22 +05:30
Karan Sharma 0dc61ac8ec feat: remove redundant map for nameserver 2021-03-10 16:41:55 +05:30
Karan Sharma 27fa414ca9 chore: fix styles 2021-03-10 16:23:25 +05:30
Karan Sharma 9b7c92698d chore: bg color fix 2021-03-10 14:23:02 +05:30
Karan Sharma cda2d04974 feat: jazz up form ui 2021-03-10 13:59:27 +05:30