Commit graph

189 commits

Author SHA1 Message Date
Sam Therapy 78bbb8f23d
fix(make): use correct tag when version is greater than 10
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-05 15:25:24 +01:00
Renovate Bot 7e7c88ddd5 fix(deps): update module golang.org/x/sys to v0.3.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-12-04 16:00:20 +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 90f5b92ffd
[SKIP CI] fix(ci): fix typo in downstream plugin
Grafana changed the name of the container

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-11-21 23:12:11 +01:00
grumbulon 5d67ffaad3
fix(log): log levels were wrong for two format statements (#157)
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build encountered an error
Reviewed-on: #157
Reviewed-by: Sam Therapy <sam@samtherapy.net>
Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Co-committed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-11-20 00:25:35 +00:00
Sam Therapy 303eb974c8
fix(readme): [SKIP CI] add / dev/null to debian
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-11-19 22:52:53 +01:00
Sam Therapy dfa14cbcdf
feat(gccgo): allow compilation with gccgo (#156)
All checks were successful
continuous-integration/drone/push Build is passing
This PR disables quic-go when compiling with gccgo since gccgo does not support generics

Reviewed-on: #156
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-11-19 18:25:04 +00:00
Sam Therapy 216431f591
fix(make): default file should be static linked [CI SKIP]
Follow the go way
2022-11-17 20:25:34 +01:00
Renovate Bot 07260fb593 fix(deps): update module github.com/lucas-clemente/quic-go to v0.31.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-11-16 23:00:19 +00:00
Renovate Bot 9a9658c6f8 fix(deps): update module golang.org/x/net to v0.2.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-11-08 19:00:16 +00:00
Renovate Bot e456d409ef fix(deps): update module golang.org/x/sys to v0.2.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-11-07 20:00:20 +00:00
Sam Therapy ea3943dd63
fix(ci): use Grafana's downstream trigger
All checks were successful
continuous-integration/drone/push Build is passing
Newer and includes PRs that should fix the problems I've had
2022-11-07 16:41:21 +01: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 2836633c62
fix(make): Make makefile more like the arch default.
All checks were successful
continuous-integration/drone/push Build is passing
This also fixes the AUR problem I had and forces an upgrade.
2022-11-07 15:50:42 +01: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 dd542b9f18
ci: replace concat with format strings
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-27 17:56:00 +02:00
Sam Therapy c658b6b796
fix(deps): go get -u
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-27 15:05:33 +02:00
Renovate Bot da7ce61152 Update module github.com/lucas-clemente/quic-go to v0.30.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-22 12:00:15 +00:00
Sam Therapy 852c87c3ab
[SKIP CI] fix(goreleaser): remove broken brew HEAD
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-21 17:10:12 +02:00
Sam Therapy ec6e723eaf
fix(goreleaser) correct URL
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-21 16:16:01 +02:00
Sam Therapy 698b0d3ad1
fix(goreleaser) correct URL
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-21 15:19:21 +02:00
Sam Therapy 8c3a5cb369
[SKIP CI] docs(readme): add more packages
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-21 03:40:19 +02:00
Sam Therapy 60e22e6d33
[SKIP CI] chore(goreleaser): add completions and manpage
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-21 03:30:07 +02:00
Sam Therapy 7feaab7103
[SKIP CI] docs(readme): update apt instructions
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-20 23:15:13 +00: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 59212798f7
[SKIP CI] fix(make): Real actual macOS support (#148)
Tested again on the lone Apple device I have.

This time it does not break make on Linux 🌝

Reviewed-on: #148
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-20 21:34:16 +00:00
Sam Therapy a386960076
[SKIP CI] chore(goreleaser): Add scoop/brew support (#149)
Reviewed-on: #149
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-20 21:34:07 +00:00
Sam Therapy 6144c7219a
[SKIP CI] ci: put token secret in right place
hehe

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-20 23:32:44 +02:00
Renovate Bot 967363f34b fix(deps): update module golang.org/x/net to v0.1.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-19 16:00:15 +00:00
Sam Therapy 2db6ee3935
[SKIP CI] fix(main): Remove webasm restriction
https://www.arp242.net/wasm-cli.html
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-19 14:51:19 +02:00
Renovate Bot 3a1ebaafe1 fix(deps): update golang.org/x/net digest to cb67ada
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-19 03:00:14 +00:00
Renovate Bot 354128d449 fix(deps): update module golang.org/x/sys to v0.1.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-17 19:00:14 +00:00
Sam Therapy def649de4f [SKIP CI] docs: fix HTTPS
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-17 17:38:42 +00:00
Renovate Bot d6a9bd9b0b fix(deps): update golang.org/x/net digest to f25eb7e
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-17 16:00:15 +00:00
Sam Therapy 0bcc63de8a
ci: Purge GHA
All checks were successful
continuous-integration/drone/push Build is passing
I would rather dedicate to only Gitea (and maybe SRHT)

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-17 15:07:55 +02:00
Sam Therapy 39639c0f7f
fix(deps): go get -u
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-16 16:27:05 +02:00
Sam Therapy b80219019e
Add check for port at the end (#142)
All checks were successful
continuous-integration/drone/push Build is passing
Fixes #141

Before, a failure would add on the port, eg.
```
127.0.0.1:53
127.0.0.1:53:53
127.0.0.1:53:53:53 // Go actually thinks this is now an IPv6 address, interesting
```

Now a check is added so this doesn't happen

Reviewed-on: #142
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-16 14:25:13 +00:00
Sam Therapy bf0e44e80c
ci: Remove server header that was broken
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-14 20:15:32 +02:00
Sam Therapy 9ec28f9b1a
[SKIP CI] docs: add apt repo to README
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-14 18:59:23 +02:00
Sam Therapy dc4edd55bb
fix(query): fix printing irregularities (#140)
All checks were successful
continuous-integration/drone/push Build is passing
1. Before, the port printed was duplicated, eg.
`;; SERVER: [::1]:53:53 (UDP)` when making query. This has been fixed (not sure what caused it)
2. JSON/XML/YAML date formatting to be compliant with RFC3339 (thanks, std/time!)

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #140
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-14 16:51:27 +00:00
Sam Therapy add1ef61a2
feat(packaging): Prepare for apt packaging (#139)
All checks were successful
continuous-integration/drone/push Build is passing
This needs to be tested (preferably extensively), which I will do now

Reviewed-on: #139
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-14 14:11:01 +00:00
Sam Therapy 2d94ea6838 revert e6a3d6040a
All checks were successful
continuous-integration/drone/push Build is passing
This broke every other operating system (and the AUR)
2022-10-14 12:47:44 +00:00
Renovate Bot 216a4b6dd7 fix(deps): update golang.org/x/net digest to f15817d
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-14 09:00:14 +00:00
Renovate Bot 66422e1512 fix(deps): update golang.org/x/sys digest to 95e765b
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-13 18:00:14 +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
Sam Therapy e6a3d6040a [SKIP CI] fix: Make makefiles portable
-D isn't supported on MacOS (sample size: 1)

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-13 12:49:15 +00:00
Renovate Bot c1b5961717 fix(deps): update module github.com/lucas-clemente/quic-go to v0.29.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-12 15:00:22 +00:00
Renovate Bot 3d97359070 fix(deps): update golang.org/x/net digest to 0b7e1fb
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-12 14:00:14 +00:00
Renovate Bot 561958c1b0 fix(deps): update golang.org/x/sys digest to 090e330
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-10 18:00:14 +00:00
Renovate Bot d2c6ed317e fix(deps): update module gotest.tools/v3 to v3.4.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-10-07 17:00:13 +00:00