17 Commits

Author SHA1 Message Date
Ali
e51f51e1bc move from logrus to slog (#422)
* Migrate from logrus to slog

* fully removing logrus

* should be working now

* Update pipeline.go

Co-authored-by: Frank Olbricht <frank.olbricht@gmail.com>

* Update response-blocklist-name.go

Co-authored-by: Frank Olbricht <frank.olbricht@gmail.com>

* added null logger

* Update pipeline.go

---------

Co-authored-by: Frank Olbricht <frank.olbricht@gmail.com>
2025-01-13 08:43:30 +01:00
Frank Olbricht
2e0610668b Implement Socks5 support (#317)
* Implement Socks5 support

* Support SOCKS5 for DoT

* Socks5 for DoH

* Return interface, not nil pointer of specific type

* Support resolving DNS server names locally instead of through the proxy

* Resolve IP4 only

* Fix go.mod after rebase

* Support LocalAddr directly in the SOCKS5 dialer

* Update docs for SOCKS5
2023-10-18 09:12:34 +02:00
Frank Olbricht
1e0c9bd064 Honor query timeout in udp/tcp resolvers (#319) 2023-07-29 10:19:43 +02:00
Frank Olbricht
017544e9f4 Copy queries prior to packing them in resolvers (#290)
* Copy queries prior to packing them in resolvers

* Fix race in quic restart logic

* Remove bad lock
2023-04-01 09:16:55 +02:00
Frank Olbricht
961a297d5a New 'query-timeout' option for resolvers (#295)
* New 'query-timeout' option for resolvers

* docs
2023-03-26 12:04:41 +02:00
Frank Olbricht
c3abb402a9 Support retry on truncation (#171)
* Support retry on truncation

* Fix port in example

* Use Msg.Truncate() instead of comparing length

* Don't cache truncated responses and update examples

* Replace test.com with example.com
2021-08-08 07:36:00 -06:00
Frank Olbricht
c0e135b786 Allow 4k responses (#95)
* Allow 4k responses

* Move UDP size config into the client
2020-10-11 08:12:18 -06:00
SeanBurford
482d40a5db Expvar (#84)
* Add metric tracking

* Clean up metrics structures.

* Add available route metric to router.
2020-09-06 09:55:30 -06:00
Frank Olbricht
896eb3f8c1 Validate resolver addresses during startup (#77)
* Validate resolver addresses during startup

* Validate the port number as well

* Move endpoint validation into the library
2020-08-02 09:57:58 -06:00
Frank Olbricht
f9cb6aab39 Support setting source address of resolvers (#75)
* Support setting source address of resolvers

* Support LocalAddr option in UDP and TCP resolvers

* Support local-address option for DoQ and DoT
2020-07-21 07:12:09 -06:00
Frank Olbricht
94387020af Log query type (#69) 2020-06-22 20:19:36 -06:00
Frank Olbricht
6c59cb1a7c Improve logging (#51)
* Improve logging

* fix test
2020-06-07 13:24:51 -06:00
folbrich
5cb1c0b0e2 Add/strip padding according to RFC7830 and RFC8467 2019-07-20 16:02:00 -06:00
folbrich
e0fc21813b Add structured logging and log levels 2019-07-20 09:08:09 -06:00
folbrich
b73e663187 Add routing based on client/source IP and more router tests 2019-06-10 19:06:12 -06:00
folbrich
48980419a2 Use pipelining for plain tcp/udp DNS connections as well 2019-06-07 18:59:52 -06:00
folbrich
618639569b Initial commit 2019-06-06 19:52:17 -06:00