GreyXor
b9bf6e80f4
fix: io and os instead of deprecated ioutil
...
Deprecated: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
https://pkg.go.dev/io/ioutil
2022-10-29 11:35:22 +02:00
Star Brilliant
8bedfc4bab
Pre-bump to next version 2.3.3
2022-09-19 00:31:26 +00:00
Star Brilliant
34014d847e
Merge pull request #137 from Gontier-Julien/patch
...
Removing Firefox 61-62 workaround patch
2022-09-15 06:01:44 +00:00
Gontier Julien
1fff629074
Removing Firefox 61-62 patch
...
Signed-off-by: Gontier Julien <gontierjulien68@gmail.com >
2022-09-14 11:15:23 +02:00
gdm85
f1b3133982
fix: add unit tests for CIDR subnets parsing
2022-09-03 13:58:56 +02:00
Star Brilliant
6276bed46f
Pre-bump version to 2.3.2
2022-06-01 02:57:07 +00:00
StarBrilliant
b338c7ae52
Bump to version 2.3.1
2021-09-13 10:31:04 +00:00
StarBrilliant
9fd69439c4
Release 2.3.0
2021-09-13 10:30:38 +00:00
Fishbone
8cd4c4205d
gh-115-go-import-v2: Suffix Go module path with /v2
2021-09-12 17:12:39 +08:00
Star Brilliant
f172a7b7fb
Merge pull request #110 from gdm85/fix/simplify
...
Simplify doDNSQuery call
2021-05-15 12:16:35 +00:00
gdm85
8a13f085a6
Simplify doDNSQuery call
2021-05-13 19:15:54 +02:00
gdm85
5f8371817b
Log for response patching only when verbose is enabled
2021-05-13 18:54:09 +02:00
Star Brilliant
02dbd9d954
Bump to version 2.2.6
2021-03-25 14:31:03 +00:00
Alex Chauvin
1cf98e87c9
add client certificate authentication ( #98 )
...
* add client certificate authentication
* fix #97 for ECS forward local addresses
2021-01-08 08:34:25 +00:00
Star Brilliant
608394e2d2
Bump to version 2.2.5
2020-12-06 22:53:33 +00:00
Alex Chauvin
967faec56c
add options for ECS full subnet mask in server & TLS verification bypass in client ( #92 )
...
* add ECS full size & limit filtering
* add tls certification bypass in configuration
* flush log lines
* changes following pull request comments
* with fmt and reorg of libs in client.go
2020-11-24 12:35:23 +00:00
Star Brilliant
2aa7370aaf
Bump to version 2.2.4
2020-11-22 13:27:30 +00:00
Star Brilliant
4f46b89feb
Resolve (some) linter warnings
2020-08-02 05:58:24 +08:00
Star Brilliant
16120fdc11
Bump to version 2.2.3
2020-08-02 04:44:31 +08:00
Star Brilliant
6d30a12d5f
Pass X-Real-IP to handlers.CombinedLoggingHandler
...
Note that X-Forwarded-For or guessed client IP are not used due to security concerns.
This should fix issue #71 .
2020-07-30 20:44:18 +08:00
Star Brilliant
a8aed7e09a
Use ExchangeClient for DNS request
2020-07-26 22:09:24 +08:00
James Swineson
d8e3969640
add no_ecs argument in query string support
2019-11-11 10:11:25 +08:00
Star Brilliant
475ef65f57
Bump version to 2.2.2
2019-10-29 06:07:30 +08:00
Star Brilliant
82317bd63e
Remove weird logs, fix #59
2019-10-29 03:23:00 +08:00
Star Brilliant
acf3e3c328
Bump version to 2.2.1
2019-10-27 22:41:14 +08:00
Star Brilliant
b708ff47b9
Release 2.2.0
2019-10-27 22:40:48 +08:00
gdm85
a09dfbbbc1
Add support for type prefix for upstream addresses
...
Add support for DNS-over-TLS upstream addresses
Remove tcp_only configuration option
2019-10-16 13:14:03 +02:00
gdm85
cc60be718c
Improve error logging/checking
2019-10-16 13:14:03 +02:00
Star Brilliant
268e203540
Release 2.1.2
2019-08-30 01:27:06 +08:00
Star Brilliant
1c321be49c
Release 2.1.1
2019-06-24 10:19:03 +08:00
Star Brilliant
cb64f6694b
Update the sample configuration to teach users how to listen on both IPv4 and IPv6
2019-05-17 02:37:52 +08:00
Star Brilliant
1ec9548ff1
Release 2.1.0
2019-05-14 01:39:46 +08:00
Wesley Squasher
f6b52a653a
Use TCP when appropriate for the given query type/response
2019-05-12 08:17:52 +00:00
Ming Aldrich-Gan
2332d9b7c1
Add local_addr configuration for doh-server ( #39 )
...
* Add local_addr configuration for doh-server
This commit adds a `local_addr` string value to `doh-server.conf`, specifying the IP address and port from which outgoing calls to upstream DNS resolvers should originate. This value is set as the `udpClient`'s and `tcpClient`'s `Dialer.LocalAddr` when initializing a `NewServer`. If the value is left empty in `doh-server.conf`, it defaults to the first `listen` address (which in turn defaults to `"127.0.0.1:8053"`).
One use case for this would be if `doh-server` is proxying requests to a local DNS resolver (e.g. `unbound` or Pi-hole). Up to version 2.0.0, all DNS queries from `doh-server` are sent from `127.0.0.1` (even if the `listen` address is set to a different loopback IP address), making it hard to distinguish them from all other local DNS queries from the same machine in the query logs.
* Revert defaulting of local_addr to listen address
This commit reverts to the existing behavior when `conf.LocalAddr == ""`, i.e. letting `dns.Client` instantiate its own `Dialer` with the default local address.
* Fixup comment in configuration file
* Log errors from Dialer instantiation (e.g. if LocalAddr port is missing)
* Fixup other comment in configuration file
* Return error and log fatal
2019-03-25 04:01:32 +08:00
Star Brilliant
7f5a23584f
Release 2.0.1
2019-03-24 19:11:12 +08:00
qyb
2df81db465
log real client ip behind a HTTPS gateway ( #38 )
...
* log real client ip behind a HTTPS gateway
* fix tab/space indent
* better compatible for apache/nginx log default format
* add config option
2019-03-16 05:36:52 +08:00
Star Brilliant
a400f03960
Bump version to 2.0.0
2019-03-09 19:10:30 +08:00
Star Brilliant
8f2004d1de
Bump to version 1.4.3
2018-12-05 15:57:51 +08:00
Star Brilliant
fa2bcf74a9
Remove dns.ErrTruncated according to https://github.com/miekg/dns/pull/815
2018-11-28 15:31:02 +08:00
Sherlock Holo
4c0cae7111
Refine runtime.GOOS check, use switch case to replace a long if
2018-11-28 00:08:21 +08:00
Star Brilliant
35ddf43505
Add PID file support
2018-11-27 17:37:57 +08:00
Star Brilliant
0df0002e6b
Bump version to 1.4.2
2018-11-10 23:00:06 +08:00
Star Brilliant
3affb2c227
Release 1.4.1
2018-11-10 22:59:37 +08:00
Star Brilliant
4754aa0414
Enable CORS by default, which is necessary for AJAX resolver to run
2018-11-07 20:13:51 +08:00
Star Brilliant
c51be0e69c
Use context for more functions
2018-11-07 19:25:46 +08:00
Star Brilliant
afa0d563d0
Add passthrough feature, tests are welcome
2018-11-07 17:10:39 +08:00
Chris Hills
ef2c6bbdc8
Update google.go
...
Make "cd" check case-insensitive.
2018-11-01 20:12:28 +00:00
Chris Hills
4d742bd15e
doh-server: change to google.go
...
Allow the "cd" parameter to be case insensitive to work with some clients that send True/False instead of true/false such as gDNS.
2018-10-31 23:40:33 +00:00
Star Brilliant
c85ef45840
Fix panic with debug_http_headers
2018-09-27 16:46:36 +08:00
Star Brilliant
6eb7b29142
Add configuration option: debug_http_headers
2018-09-22 04:23:55 +08:00