Eugene Bujak
|
ff1c19cac5
|
dnsforward -- support tcp:// schema
|
2018-12-05 21:33:32 +03:00 |
Eugene Bujak
|
2a1059107a
|
dnsforward -- add upstream tests.
|
2018-12-05 21:33:07 +03:00 |
Eugene Bujak
|
bb6c596b22
|
dnsforward -- add a simple test that launches a server and queries well-known value through it
|
2018-12-05 20:13:35 +03:00 |
Eugene Bujak
|
478ce03386
|
dnsforward -- implement ratelimit and refuseany
|
2018-12-05 18:49:19 +03:00 |
Eugene Bujak
|
b0149972cc
|
dnsforward -- give only ip address to querylog, without port
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
9b43e07d7f
|
dnsforward -- flush querylog to file on server stop
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
052f975762
|
dnsforward -- Move querylog from coredns plugin, a more complex migration with proper API took too long so a simple move was used instead to save time.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
e5d2f883ac
|
dnsforward -- Make Upstream interface give access to Address field.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
8396dc2fdb
|
Update docs for formatting in godoc.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
09fb539875
|
Simplify two lines into one line.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
be4b65fdca
|
dnsforward -- use dnsfilter before cache -- changed settings or filters would require cache invalidation otherwise
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
0502ef6cc7
|
dnsforward -- initialize all dnsfilter settings at start and reconfigure
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
7d2e39ed52
|
dnsfilter -- Add a convinience function to add all rules from all filters.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
e26837d9e8
|
dnsfilter -- Add parameter to New() to supply optional initial config.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
057db71f3b
|
Get rid of duplicate variable definitions
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
87c54ebd4c
|
Move Filter definition from dnsforward to dnsfilter, it belongs there.
|
2018-12-05 16:57:21 +03:00 |
Eugene Bujak
|
a6e0a17454
|
dnsforward -- trim dot in the end of hostname, dnsfilter does not expect it there
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
9d87ae95e6
|
dnsforward -- if given addresses without ports, assign default ports
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
8316d39b42
|
Move filtering setting fields from main app to dnsforward.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
7120f551c8
|
dnsforward -- rename BlockedTTL to BlockedResponseTTL to be in line with app's config variable.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
e4a3564706
|
Fix a logical race that wasn't detectable by -race -- we were closing a connection that was already reestablished.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
4eb122e973
|
Avoid duplication of fields in filter struct.
|
2018-12-05 16:56:11 +03:00 |
Eugene Bujak
|
a904f85e61
|
dnsforward library -- default to plain DNS for high-performance testing.
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
584f441141
|
dnsforward library -- introduce IsRunning()
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
7944f23d95
|
dnsforward library -- consistently nullify and close listening socket when we're done with it.
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
639b34c7d1
|
dnsforward library -- Fix race conditions found by -race
|
2018-12-05 16:54:56 +03:00 |
Eugene Bujak
|
5a548be16c
|
Add dns forwarding server library
|
2018-12-05 16:54:56 +03:00 |