Miek Gieben
c4ab98c6e3
Add middleware.NextOrFailure ( #462 )
...
This checks if the next middleware to be called is nil, and if so returns
ServerFailure and an error. This makes the next calling more robust and
saves some lines of code.
Also prefix the error with the name of the middleware to aid in
debugging.
2016-12-20 18:58:05 +00:00
John Belamaric
451a0bd529
Merge pull request #457 from kdima/kdima-patch-1
...
Return no items if less than 3 items in service segments
2016-12-14 17:21:11 -05:00
Dmytro Kislov
8cb5a05798
Return no items if less than 3 items in service segments
2016-12-14 16:17:14 +00:00
Miek Gieben
5d2e4db99d
middleware/file: include sigs in additional ( #456 )
...
When asked for the NSset include glue and possible sigs in the
additional section.
Fixes #411
2016-12-14 12:50:00 +00:00
Miek Gieben
187e1dc512
middleware/file: include nsset in replies
...
This is required so that a resolver can upade the referral NSset
with the NSset at the child.
Update tests as well.
2016-12-09 11:59:14 +00:00
Chris O'Haver
56d3b47d11
Add A lookup for headless services ( #451 )
2016-12-02 22:50:01 +00:00
Miek Gieben
8faa8354b4
Merge branch 'v4dns'
2016-11-30 20:45:23 +00:00
Miek Gieben
ada704e0ae
middleware/httpproxy: disable v6 lookup
...
Don't lookup the AAAA dns.google.com.
2016-11-30 20:44:45 +00:00
Miek Gieben
b086e5f64d
middleware/log: make {size} the length of the request ( #449 )
...
* middleware/log: make {size} the length of the request
{size} is the lenght of the request, {rsize} is the length of the
reply.
* Fix test
2016-11-30 20:44:00 +00:00
Miek Gieben
b85c6788dd
Merge branch 'master' of github.com:miekg/coredns
2016-11-29 21:58:13 +00:00
Miek Gieben
8c8b37a30e
middleware/metrics: export actual size ( #448 )
...
The `*_size*` metrics now export the actual packet length, not the
advertised one (although that might be nice as well).
2016-11-29 11:02:43 +00:00
Miek Gieben
4cfd19c7c9
middleware/httpproxy: add debug queries ( #446 )
...
* middleware/httproxy: implement debug queries
Not too useful at the moment, but o-o.debug queries are supported
and return the Comment from dns.google.com.
Note that this is not always set.
* improve documentation
* Testing cleanups
2016-11-29 09:54:57 +00:00
Miek Gieben
eb8158ff53
Merge branch 'master' of github.com:miekg/coredns
2016-11-27 15:28:17 +00:00
Miek Gieben
0876a38cd9
middleware/httproxy: smaller timeouts
...
Make the timeouts smaller after we fail to connect.
2016-11-27 15:24:50 +00:00
Miek Gieben
a1b9f96d87
Add ARM for Raspberry PI ( #443 )
...
Also release ARM binary when releasing. Comes in handy for raspberry Pi.
2016-11-27 15:19:41 +00:00
Miek Gieben
96222927a3
middleware/httpproxy: Add ( #439 )
...
This PR adds a middleware that talks to dns.google.com over HTTPS,
meaning all your DNS traffic is encrypted when traversing your ISP and
the internet.
The `dns.google.com` address is re-resolved every 30 seconds.
2016-11-26 17:57:22 +00:00
Miek Gieben
f8b9332265
Use upstream parsing from master branch ( #438 )
2016-11-24 22:31:42 +01:00
Miek Gieben
a951fee291
merge conflict fixed
2016-11-24 21:51:38 +01:00
Miek Gieben
4a8db8a4ce
middleware/proxy: config syntax cleanups ( #435 )
...
* middleware/proxy: config syntax cleanups
Allow port numbers to be used in the transfer statements and clean
up the proxy stanza parsing. Also allow, when specifying an upstream,
/etc/resolv.conf (or any other file) to be used for getting the upstream
nameserver.
Add tests and fix the documentation to make clear what is allowed.
* Fix the other upstream parse as well
2016-11-24 16:57:20 +01:00
Miek Gieben
c8dd0459c7
Merge pull request #436 from miekg/better-error-code
...
middleware/file: better notify error reporting
2016-11-24 16:27:20 +01:00
Miek Gieben
ec2138b21c
middleware/file: better notify error reporting
...
Report errors as originating from notifies in all cases.
Fixes #412
2016-11-24 15:04:27 +00:00
Miek Gieben
08e2e9aa46
Merge pull request #434 from devnev/propagate-truncate-errors
...
Propagate both message and error in proxy exchange.
2016-11-23 20:44:04 +01:00
Mark Nevill
1cf5e56d5a
Propagate both message and error in proxy exchange.
2016-11-23 19:09:35 +00:00
Miek Gieben
25c57ea314
Merge pull request #428 from johnbelamaric/k8s-fix-ptr
...
K8s Test Cleanup and Service PTR
2016-11-16 10:20:34 +00:00
Miek Gieben
1168f35eff
Merge pull request #431 from miekg/close-reader
...
middleware/auto: Close to reader
2016-11-16 10:19:53 +00:00
Miek Gieben
b827c691bb
middleware/auto: Close to reader
...
Close the reader, stop leaking file descriptors.
2016-11-16 10:16:56 +00:00
John Belamaric
7e93746083
Fix reverse zone in corefile
2016-11-15 15:03:49 +00:00
John Belamaric
99b60d2966
Change IPs to match hyperkube
2016-11-15 14:25:37 +00:00
John Belamaric
afe4368c34
K8s Test Cleanup and Service PTR
...
Change the CI setup for K8s to be simpler. Now it just creates a
set of objects via a yaml file, making it very easy to modify
the tests.
Implement PTR for services.
2016-11-15 01:35:24 +00:00
Miek Gieben
c6700c64fa
Add docs ( #427 )
...
Provide TTL examples for cache middleware. Fixes : #364
Add interaction docs to make non invalidation for cache middleware
clear. Cache might serve stale records. Fixes : #403
2016-11-14 16:59:17 +00:00
Michael Grosser
ecbb6baccd
Add docs
...
Provide TTL examples for cache middleware. Fixes : #364
Add interaction docs to make non invalidation for cache middleware
clear. Cache might serve stale records. Fixes : #403
2016-11-14 16:06:41 +00:00
Yong Tang
137fc33b8f
Fix several typos in docs. ( #426 )
...
Fixes several typos in docs.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
2016-11-14 07:25:17 +00:00
Yong Tang
43b2519eca
Add Codecov badge to README.md ( #425 )
...
This fix adds Codecov badge to README.md so that coverage data shows up.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
2016-11-13 11:39:40 -08:00
Miek Gieben
f1a10d5826
Add goreportcard
2016-11-13 14:11:14 +00:00
Michael Grosser
ece3cf8ecf
Fix various issues with formatting and typos ( #424 )
...
* Fix typos
* Simplify code
* Fix error usage
2016-11-13 14:03:12 +00:00
Miek Gieben
f402b8f726
Releasing: automate more
...
Only manual operation is editing the source - even that could be
automated but meh.
2016-11-11 17:57:06 +00:00
Miek Gieben
651f3938a1
More idiomatic Go
2016-11-11 16:56:15 +00:00
Miek Gieben
20e25559d5
releasing 003
v003
2016-11-11 16:40:17 +00:00
Miek Gieben
0481614fd8
Document how to get the author from git ( #423 )
2016-11-11 09:36:26 +00:00
Chris O'Haver
96206cdbc3
Return NXDOMAIN when no items match query ( #422 )
...
* When no records match, reply with NXDOMAIN
* Implement in IsNameError
* case for unexposed namespace. k8s integation tests
* Fix imports order. Lower case of err strs.
2016-11-10 21:24:06 +00:00
Miek Gieben
8dd47dd932
Remove some printlns
2016-11-10 14:09:49 +00:00
Miek Gieben
9328a8e7a4
Compile fixes and make it work
2016-11-10 12:58:40 +00:00
Miek Gieben
4036c3c319
Revert "Show master status, not latest build"
...
This reverts commit 15ab38f068 .
2016-11-10 10:35:03 +00:00
Miek Gieben
15ab38f068
Show master status, not latest build
2016-11-10 09:53:11 +00:00
Miek Gieben
d383f279a0
Implement external lookups for CNAMEs
2016-11-10 07:48:47 +00:00
John Belamaric
611d83ed97
Merge pull request #359 from chrisohaver/replace_sky
...
Add type to default template
2016-11-09 14:02:06 -08:00
Miek Gieben
0919216d3c
middleware/{file, auto}: resolve external CNAMEs
...
Do the same thing as in etcd and give the option of externally resolving
CNAME. This is needed when CoreDNS is a proxy as well is serving zones.
2016-11-09 21:26:49 +00:00
Chris O'Haver
5f55cd6dad
Update k8s integration tests
2016-11-09 21:07:27 +00:00
Chris O'Haver
48e1909218
Add type to default template
2016-11-09 21:07:27 +00:00
Michael Grosser
a8287bb04d
middleware/log cleanup readme ( #413 )
2016-11-09 13:02:06 +00:00