aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/setup.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-09-19Better naming (#2104)Gravatar Miek Gieben 1-3/+3
* Move functions from pkg/transport to pkg/parse Although "parse" is a fairly generic name I believe this is somewhat better named. pkg/transport keeps a few constants that are uses throughout for the rest is is renaming a bunch (and the fallout from there to make things compile again). Signed-off-by: Miek Gieben <miek@miek.nl> * Fix tests Signed-off-by: Miek Gieben <miek@miek.nl>
2018-09-19Cleanup ParseHostOrFile (#2100)Gravatar Miek Gieben 1-33/+7
Create plugin/pkg/transport that holds the transport related functions. This needed to be a new pkg to prevent cyclic import errors. This cleans up a bunch of duplicated code in core/dnsserver that also tried to parse a transport (now all done in transport.Parse). Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-15plugin/forward: Split setup to reuse it from external plugins (#2034)Gravatar Eugen Kleiner 1-49/+62
2018-07-09plugin/forward: add HealthChecker interface (#1950)Gravatar Miek Gieben 1-1/+1
* plugin/forward: add HealthChecker interface Make the HealthChecker interface and morph the current DNS health checker into that interface. Remove all whole bunch of method on Forward that didn't make sense. This is done in preparation of adding a DoH client to forward - which requires a completely different healthcheck implementation (and more, but lets start here) Signed-off-by: Miek Gieben <miek@miek.nl> * Use protocol Signed-off-by: Miek Gieben <miek@miek.nl> * Dial doesnt need to be method an Forward either Signed-off-by: Miek Gieben <miek@miek.nl> * Address comments Address various comments on the PR. Signed-off-by: Miek Gieben <miek@miek.nl>
2018-07-07plugin/forward: add prefer_udp option (#1944)Gravatar Ruslan Drozhdzh 1-1/+6
* plugin/forward: add prefer_udp option * updated according to code review - fixed linter warning - removed metric parameter in Proxy.Connect()
2018-04-20adding sequential policy to forward plugin (#1704)Gravatar Scott Donovan 1-0/+2
* adding sequential policy to forward plugin * making sequential an alias to first in proxy plugin
2018-04-13plugin/forward: test TLS setup (#1677)Gravatar Miek Gieben 1-1/+1
2018-04-01plugin/metrics: add MustRegister function (#1648)Gravatar Miek Gieben 1-11/+1
This registers the Collectors iff the metrics plugin has been loaded. Safes a bunch of code in each and every plugin's setup code.
2018-03-30plugin/forward: improve tls configuration (#1643)Gravatar Ruslan Drozhdzh 1-2/+2
2018-02-28return an error for multiple use of some plugins (#1559)Gravatar Miek Gieben 1-0/+6
* plugins: Return error for multiple use of some Return plugin.ErrOnce when a plugin that doesn't support it, is called mutliple times. This now adds it for: cache, dnssec, errors, forward, hosts, nsid. And changes it slightly in kubernetes, pprof, reload, root. * more tests
2018-02-23doc: some function/vars/const/package level updates (#1558)Gravatar Miek Gieben 1-1/+1
* doc: some function/vars/const/package level updates Various update that stood out while reading godoc.org for CoreDNS. * Fix some misspellings as well
2018-02-15plugin/forward using pkg/up (#1493)Gravatar Miek Gieben 1-23/+4
* plugin/forward: on demand healtchecking Only start doing health checks when we encouner an error (any error). This uses the new pluing/pkg/up package to abstract away the actual checking. This reduces the LOC quite a bit; does need more testing, unit testing and tcpdumping a bit. * fix tests * Fix readme * Use pkg/up for healthchecks * remove unused channel * more cleanups * update readme * * Again do go generate and go build; still referencing the wrong forward repo? Anyway fixed. * Use pkg/up for doing the healtchecks to cut back on unwanted queries * Change up.Func to return an error instead of a boolean. * Drop the string target argument as it doesn't make sense. * Add healthcheck test on failing to get an upstream answer. TODO(miek): double check Forward and Lookup and how they interact with HC, and if we correctly call close() on those * actual test * Tests here * more tests * try getting rid of host * Get rid of the host indirection * Finish removing hosts * moar testing * import fmt * field is not used * docs * move some stuff * bring back health_check * maxfails=0 test * git and merging, bah * review
2018-02-05plugin/forward: add it (#1447)Gravatar Miek Gieben 1-0/+262
* plugin/forward: add it This moves coredns/forward into CoreDNS. Fixes as a few bugs, adds a policy option and more tests to the plugin. Update the documentation, test IPv6 address and add persistent tests. * Always use random policy when spraying * include scrub fix here as well * use correct var name * Code review * go vet * Move logging to metrcs * Small readme updates * Fix readme