Commit Graph

1701 Commits

Author SHA1 Message Date
Miek Gieben
1f943d4f2b Use new style form to register directives
See
17709a7d3f
where there was a slight change (for the better) on how to register.

Fix the CoreDNS to adhire to this. Needs Caddy from master to compile at
this moment.
2016-08-25 07:23:02 +01:00
Miek Gieben
b1bc08646d Fix complition
Fix "just push to master, because I know better" compilation error.
2016-08-24 22:09:49 +01:00
Miek Gieben
af6b3a6d02 Split out versions in version.go
The will prolly make automatic releases easier.
2016-08-24 21:43:47 +01:00
Miek Gieben
1c31f1e7f3 remove debug 2016-08-23 17:35:20 +01:00
Miek Gieben
47f4e165a0 Fix main startup (#232)
Set version and name of the program. And then call coremain.Run().

The coremain split makes CoreDNS embeddable.

Also see #189 for an old PR.
2016-08-23 16:36:29 +01:00
Michael Richmond
2153d2defd Fix k8s integration tests (#231)
* Adding debug message when starting k8s controller

* Adding work-around for timing issue in k8s integration tests

* Remove unused import

* Fix Makefile for ast package

* Increase k8s verbosity in travis

* Updating TODO list to find root cause of test issue

* go fmt cleanup
2016-08-23 07:15:21 +01:00
Miek Gieben
8c9c4778c6 Merge pull request #230 from cricketliu/master
Second set of grammatical fixes
2016-08-22 22:42:54 +01:00
cricketliu
938ecbeab9 Update README.md
Grammatical fixes.
2016-08-22 14:40:24 -07:00
cricketliu
9a3fa013d6 Update README.md
Grammatical fixes.
2016-08-22 14:38:33 -07:00
Miek Gieben
7ac8ce952d Merge pull request #229 from cricketliu/master
Some grammatical fixes to various README.md files
2016-08-22 22:35:33 +01:00
cricketliu
af6ebb7cd9 Update README.md
Grammatical fixes.
2016-08-22 14:33:40 -07:00
cricketliu
6b1d816d5a Update README.md
Grammatical fixes.
2016-08-22 14:29:50 -07:00
cricketliu
62a845ca2a Update README.md
Grammatical fixes.
2016-08-22 14:27:55 -07:00
cricketliu
e0493e898b Update README.md
Grammatical fixes.
2016-08-22 14:25:19 -07:00
cricketliu
58a63f53aa Update README.md
Grammatical fixes.
2016-08-22 14:24:02 -07:00
cricketliu
bfb89d8dba Update README.md
Grammatical fixes.
2016-08-22 14:17:21 -07:00
cricketliu
052387b705 Update README.md
Grammatical fixes.
2016-08-22 14:12:03 -07:00
cricketliu
428c99b7a0 Update README.md
Grammatical fixes plus correction of the reverse-mapping zone for 10.0.0/24.
2016-08-22 14:10:25 -07:00
cricketliu
2666ca7238 Update README.md
Grammatical fixes.
2016-08-22 14:05:56 -07:00
cricketliu
5325dadb7c Update README.md 2016-08-22 14:04:21 -07:00
cricketliu
d51c7baefb Update README.md
Grammatical fixes.
2016-08-22 13:53:00 -07:00
cricketliu
2ad57f0804 Update README.md
More grammatical fixes.
2016-08-22 13:51:54 -07:00
cricketliu
63840bc2fa Update README.md
Minor grammatical fixes.
2016-08-22 13:48:23 -07:00
Miek Gieben
5318e1084b Merge branch 'master' of github.com:miekg/coredns 2016-08-22 07:47:28 +01:00
Miek Gieben
82ac70f15a Doc updates
Remove miek.nl in favor of example.org and other smaller cleanups.
2016-08-22 07:47:03 +01:00
Miek Gieben
08ca048a35 Use go/ast for adding coredns (#228)
Use the package go/ast/astutil for adding CoreDNS to caddy and removing
the http server stuff from it as well - we're only a DNS server, no need
to caddy all the HTTP stuff as well.

Results in smaller binary and plugin_generate.go being much smaller as
well.
2016-08-21 14:48:54 +01:00
Miek Gieben
26f52a99d9 Remove old stuff from caddy and some go vet changes (#227) 2016-08-21 11:28:11 +01:00
Miek Gieben
0be3fb4947 Set correct versioning for CoreDNS (#225)
This needs a patch in caddy to work properly, but we want something like
it anyway.

See https://github.com/mholt/caddy/pull/1058
2016-08-21 10:27:07 +01:00
Miek Gieben
416603383d Cleanup and fixes (#223)
* Set version to 001
* Remove k8stest, test fails is k8s is not there: touch luck
* Remove server directory: not used anymore
* Disable k8s test (for now)
* gometalinter changes
2016-08-20 23:03:36 +01:00
Miek Gieben
9ac3cab1b7 Make CoreDNS a server type plugin for Caddy (#220)
* Make CoreDNS a server type plugin for Caddy

Remove code we don't need and port all middleware over. Fix all tests
and rework the documentation.

Also make `go generate` build a caddy binary which we then copy into
our directory. This means `go build`-builds remain working as-is.

And new etc instances in each etcd test for better isolation.
Fix more tests and rework test.Server with the newer support Caddy offers.

Fix Makefile to support new mode of operation.
2016-08-19 17:14:17 -07:00
Michael Richmond
a1989c3523 Moving k8s coredns yaml service definition file (#218) 2016-08-16 09:47:08 -07:00
Miek Gieben
21ddfe8290 Move singleflight out of middleware/ (#217)
It is not middleware, so move it up one level. It was also use from
core/ showing that indeed its use is not limited to middlewares.
2016-08-16 09:24:37 -07:00
Michael Richmond
9aaeef6376 Moving k8s support scripts out of code folder (#216)
* Adding pod setup to kubernetes startup scripts

* Adding template description to k8s README.md

* Fix typo.

* Moving kubernetes setup scripts out of go folder

* Fixing script error

* Adding messages to k8s scripts for clarity
2016-08-16 09:12:52 -07:00
Miek Gieben
79fd268e9c Remove go 1.5 from travi (#214) 2016-08-14 14:24:40 -07:00
Miek Gieben
34ffb2b314 Fix TestStubLookup and TestLookup (#213)
Changes large parts of proxy lookup mechanism.

The duplicate zone checking erroneous added a nameserver for each
zone we are auth. for, creating to many backend hosts. So even when a
host was determined do be Down() we still got an (identical) new one
from the list.

The Down() and failure checking for upstream hosts had data race in the
uh.Fails check - we now use atomic.LoadInt32 for that.

Use and debug the test/server.go test servers implementation in the
TestStubLookup test to prevent going out to the internet.

Also delete the stub cycle test. That test was wrong and did not test
what it needed to be testing.  Deleted for now.
2016-08-14 12:57:49 -06:00
elcore
6d3f9d2193 Set Authoritative Answer - DNSKEY (fix #210) (#212)
* Authoritative Answer - DNSKEY

* Improve Style
2016-08-14 11:19:36 -07:00
Miek Gieben
cdb7cb68ed Merge branch 'master' of github.com:miekg/coredns 2016-08-14 07:31:13 -07:00
Miek Gieben
e85a8260e3 middleware/dnssec
Add warning about in memory keys and the impossibilty to extract them.
2016-08-14 07:30:41 -07:00
Michael Richmond
ad2838b916 Adding label selector support to Corefile (#208)
* Adding parsing for label selector to Corefile

* Updating comment typo in k8sCorefile

* Adding implementation of label support to filter exposed objects

* Updating TODO list
2016-08-12 20:44:08 -07:00
Miek Gieben
3b7b9b49d5 Fix lookup test (#206)
* Always continue

* debug queries: more sane impl

This PR just add a msg.Service to debug instead of crafting an TXT RR
at that point. This way we lift on the normal way of generating debug
responses and don't muck with that implementation.

The tags=etcd is flaky as hell for some reason.
2016-08-08 21:42:39 -07:00
Miek Gieben
b53661d223 Add debugging for failed lookups (#199)
This PR adds debug support for failed lookups. I.e. when a record
is outside the configured domain, we do a forward lookup. If this
fails the error is silently dropped. This PR adds it back as an error
in when debugging is enabled.

Fixes #197
2016-08-08 19:54:17 -07:00
Miek Gieben
ad76aef5fc Fix stubzone retention (#198)
Make the receiver a pointer so that the uptdateStubZones map update will
retain the stubzones found, unlike the current case where the update
will be applied and then promptly forgotten, because it is working on a
copy.

Add test/etcd_test.go to test a large part of the code. This didn't
catch the chaos middleware hack though. The chaos middleware zones are
now *not* automatically added. You have to take care of that by yourself
(docs updates).

When using debug queries and falling through to the next middleware in
etcd, restore the original (with o-o.debug) query before passing it on.
2016-08-08 19:18:55 -07:00
Michael Richmond
c079de65b5 Adding resyncperiod to Corefile (#205)
* Removing old unused inline k8s API code and tests.
* Adding parsing implementation for `resyncperiod` keyword from Corefile.
* Adding tests for parsing `resyncperiod` keyword from Corefile.
8 Updating README.md and conf/k8sCorefile.
2016-08-08 14:30:04 -07:00
Michael Richmond
51eaefc037 Switch over to k8s notification API -- Syncing forked project
Switch over to k8s notification API
* Merge notification code by @aledbf and update for recent changes.
* Fix travis environment to correctly build with k8s.io and forked repositories.
* Refactored kubernetes Corefile parser
* Added lots of Corefile parsing tests
2016-08-08 08:45:25 -07:00
Michael Richmond
6d90b745e0 Switch over to k8s notification API (#202)
* Merge notification code by @aledbf and update for recent changes.
* Fix travis environment to correctly build with k8s.io and forked repositories.
* Refactored kubernetes Corefile parser
* Added lots of Corefile parsing tests
2016-08-05 18:19:51 -07:00
Miek Gieben
604d2a3730 Add reload command to systemd unit file 2016-08-05 16:11:08 +00:00
Miek Gieben
fd6fd68a22 Merge pull request #196 from errordeveloper/master
Fix a few typos in the docs
2016-07-29 07:12:27 -07:00
Ilya Dmitrichenko
615a20de3a Fix a few typos in the docs 2016-07-29 13:03:51 +01:00
Michael Richmond
ac0becc6b2 Adding logo files (#195)
* Adding logo files

* Fixing 274x106 bitmap
2016-07-27 11:01:12 -07:00
Michael Richmond
8dec292668 Fix Travis IPv6 and add k8s integration testing to CI (#194)
Updating travis yaml file to:
* Force IPv6 to work in their VM environment
* Enable docker (requires VM environment and sudo)
* Run kubernetes integration tests in Travis
2016-07-27 10:01:24 -07:00