Commit graph

16 commits

Author SHA1 Message Date
Sam Therapy 58cee5b3c9
docs: Add more documentation
All checks were successful
Mirror Push / mirror (push) Successful in 6s
Test / test (stable) (push) Successful in 39s
Test / test (oldstable) (push) Successful in 56s
Add the "official" logo.
Also run golangci-lint

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-23 22:00:01 +01:00
Sam Therapy 21047275bf
fix(quic): A workaround for adguard not working over QUIC
All checks were successful
Mirror Push / mirror (push) Successful in 6s
Test / test (stable) (push) Successful in 41s
Test / test (oldstable) (push) Successful in 52s
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-15 18:20:03 +01:00
Renovate Bot 8c888a90f1 fix(deps): update module gotest.tools/v3 to v3.5.0 (#202)
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-committed-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-08-10 15:07:46 +00:00
Sam Therapy ba93384f9b
misc: lint
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-06-02 23:21:56 +02:00
Sam Therapy db77f2315c
fix(https): Small HTTPS annoyance fixes
Some checks failed
continuous-integration/drone/push Build is failing
Fixes /dns-query being appended on failure
Fixes /dns-query from being appended when it should not be

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-06-02 22:54:02 +02:00
Sam Therapy fb9fd7689f
fix(trace): Remove wrong error message
All checks were successful
continuous-integration/drone/push Build is passing
Reverse queries *are* actually supported, so the error message was wrong
Even dig supports it naturally.
2023-04-27 22:04:28 +02:00
Sam Therapy e782c9cb23
feat: change import URL
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 19:18:58 +01:00
Sam Therapy fdba9a0a41
refactor: Add named returns (#168)
All checks were successful
continuous-integration/drone/push Build is passing
Add some named returns

Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Reviewed-on: #168
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-17 16:52:50 +00:00
Sam Therapy 530ef06ee1
feat: Trace (#162)
All checks were successful
continuous-integration/drone/push Build is passing
This PR should add the trace option, used by +trace and --trace

TODO
- [x] Making the trace work properly
- [x] Documentation adding
- [x] Completion adding

Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Reviewed-on: #162
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-10 17:51:49 +00:00
Sam Therapy 64768f0956
fix(errors): put exported errors in util (#161)
All checks were successful
continuous-integration/drone/push Build is passing
Centralize them in one place

Reviewed-on: #161
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-06 21:39:28 +00:00
Sam Therapy a2e7b262ea
fix(misc): minor changes (#158)
All checks were successful
continuous-integration/drone/push Build is passing
1. update indirect dependencies
2. Set timeout to 5 seconds instead of 1
- this helps with slow queries
3. Put class back in the default query output
- this fixes a problem with using awl to make a root file

Reviewed-on: #158
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-03 20:36:23 +00:00
Sam Therapy feef2cddaf
fix(https): add default endpoint (#152)
All checks were successful
continuous-integration/drone/push Build is passing
say you do -H @dns.froth.zone/sodd
It should send a request to dns.froth.zone/sodd
but if you do -H @dns.froth.zone
it should send a request to dns.froth.zone/dns-query

This does that

Reviewed-on: #152
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-11-07 15:07:44 +00:00
Sam Therapy a64a260c55
fix(test): typo fix
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-31 13:56:10 +01:00
Sam Therapy b1fa25a9a0
feat(dig): Dig +https (#147)
All checks were successful
continuous-integration/drone/push Build is passing
BREAKING CHANGE: DNS-over-HTTPS requests are now dealt with differently

Using +https or -H now implies adding /dns-query (like dig)
Using the implied https:// prefix follows the old behaviour (nothing added or implied)

Reviewed-on: #147
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-20 21:34:24 +00:00
Sam Therapy 81da49093d
refactor: Make all calls to options pointers (#132)
All checks were successful
continuous-integration/drone/push Build is passing
Instead of copying the opts struct every time it gets passed around, it should be created once and passed through reference.

This should reduce memory utilization, unfortunately I cannot test it since this program runs so fast pprof won't report anything useful.

I think I found all of them 🙂

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #132
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-13 12:49:36 +00:00
grumbulon 3a0a8f015a chore(Refactor) (#110)
All checks were successful
continuous-integration/drone/push Build is passing
refactor

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #110
Reviewed-by: Sam <sam@samtherapy.net>
2022-09-24 23:11:09 +00:00