Commit graph

16 commits

Author SHA1 Message Date
58cee5b3c9
docs: Add more documentation
Add the "official" logo.
Also run golangci-lint

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-23 22:00:01 +01:00
21047275bf
fix(quic): A workaround for adguard not working over QUIC
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-15 18:20:03 +01:00
8c888a90f1 fix(deps): update module gotest.tools/v3 to v3.5.0 ()
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-committed-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-08-10 15:07:46 +00:00
ba93384f9b
misc: lint
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-06-02 23:21:56 +02:00
db77f2315c
fix(https): Small HTTPS annoyance fixes
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
fb9fd7689f
fix(trace): Remove wrong error message
Reverse queries *are* actually supported, so the error message was wrong
Even dig supports it naturally.
2023-04-27 22:04:28 +02:00
e782c9cb23
feat: change import URL
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 19:18:58 +01:00
fdba9a0a41
refactor: Add named returns ()
Add some named returns

Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Reviewed-on: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-17 16:52:50 +00:00
530ef06ee1
feat: Trace ()
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: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-10 17:51:49 +00:00
64768f0956
fix(errors): put exported errors in util ()
Centralize them in one place

Reviewed-on: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-06 21:39:28 +00:00
a2e7b262ea
fix(misc): minor changes ()
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: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-03 20:36:23 +00:00
feef2cddaf
fix(https): add default endpoint ()
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: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-11-07 15:07:44 +00:00
a64a260c55
fix(test): typo fix
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-31 13:56:10 +01:00
b1fa25a9a0
feat(dig): Dig +https ()
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: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-20 21:34:24 +00:00
Sam
81da49093d
refactor: Make all calls to options pointers ()
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: 
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-13 12:49:36 +00:00
3a0a8f015a chore(Refactor) ()
refactor

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