Commit graph

27 commits

Author SHA1 Message Date
Yong Tang
c0d435d4e8 Fix log output of the version string. (#910)
Split version string into two, before:
```
2017/08/12 19:43:08 [INFO] CoreDNS-010
linux/amd64, go1.8.3, a6d2d7b5
CoreDNS-010
linux/amd64, go1.8.3, a6d2d7b5
```
After:
```
root@9bd51ffc39aa:/go/src/github.com/coredns/coredns# ./coredns
.:53
2017/08/12 19:12:59 [INFO] CoreDNS-010
2017/08/12 19:12:59 [INFO] linux/amd64, go1.8, a6d2d7b
CoreDNS-010
linux/amd64, go1.8, a6d2d7b
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-12 20:59:28 +01:00
Yong Tang
a09f208c51 Add git commit to the version output. (#900)
Now the output would be:
```
 ./coredns -version
CoreDNS-010
linux/amd64, go1.8, 241e3db
```
In case the local file has been modified, then the output would be (with --dirty):
```
 ./coredns -version
CoreDNS-010
linux/amd64, go1.8, 241e3db-dirty
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-11 17:47:37 +01:00
John Belamaric
cf92a66573 Release 010 2017-07-25 11:11:41 -04:00
Miek Gieben
81315b0b3b Release 009 2017-07-17 14:49:39 +00:00
Ning Xie
817f3960b8 fix hard code about server type (#759) 2017-06-28 02:05:54 -07:00
Miek Gieben
9e463e0bca core: errors on junk in the command line (#744)
We would silently ignore anything that we couldn't parse on the command
line, this change make this an error.

Fixes #743
2017-06-20 12:01:10 -07:00
John Belamaric
5942f5dd5b Release 008 2017-06-14 17:47:04 -04:00
Miek Gieben
0d72efbbf9 core: -log bolean flag to enable logging (#726)
* core: -log bolean flag to enable logging

Change to -log flag to a boolean that defaults false and when true
logs to stdout.

* And bool here
2017-06-09 14:09:16 +01:00
Miek Gieben
024f56682d middleware/chaos: fix version (#669)
* middleware/chaos: fix version

Move the version setting into a init function so it is done early. Then
tweak the setup code for chaos a bit to correctly pick this version up.
Add an integration test to pick this up in the toplevel test/ directory.

Fixes #667

* Update tests
2017-05-22 08:09:35 -04:00
Miek Gieben
edcc0356b7 Release 007 2017-05-03 19:37:27 +01:00
Miek Gieben
703f516112 Release 006 2017-02-22 21:22:11 +00:00
Yong Tang
81af74aad0 Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547)
This fix fixes import path from
`github.com/miekg/coredns`
->
`github.com/coredns/coredns`
2017-02-22 06:51:47 +00:00
Miek Gieben
a7c9fd5d6b Release 005 2017-02-09 18:47:21 +00:00
Miek Gieben
39af7e4076 Release 004 2017-01-01 10:38:47 +00:00
Miek Gieben
20e25559d5 releasing 003 2016-11-11 16:40:17 +00:00
Miek Gieben
da742ed596 core: remove unwanted flags (#410)
Remove unwanted flags (mostly from glog) and keep the ones we need.
2016-11-09 10:00:46 +00:00
Miek Gieben
2e68682d4d releasing 002 2016-10-19 20:34:28 +01:00
Miek Gieben
9b5c9df321 Don't register quiet flag in register.go (#299)
This clashes to Caddy, which also has its own quiet flag. Move stuff
around a bit, also to prevent cyclic imports.
2016-09-25 18:42:08 +01:00
Miek Gieben
de0fa53379 Doc: add package docs (#296)
* Doc: add package docs

Add short package level docs to make godoc looks nicer.
Add some badges to the README.

* correct url
2016-09-25 08:39:20 +01:00
Miek Gieben
31851c6acd coredns: default Corefile (#265)
When no Corefile is given, default to loading the whoami middleware on
the default port (2053).  Also add back the -port flag that allows you
to override the default port.

Further cleanup the startup messages and use caddy's OnStartupComplete()
to blurp out which zones and ports we have.  These can be suppressed
with the -quiet flag.

Normal startup:

miek.nl.:1053
miek.nl2.:1053
example.org.:1054
2016/09/17 20:41:19 [INFO] CoreDNS-001 starting
CoreDNS-001 starting

with the -quiet flag:

2016/09/17 20:41:34 [INFO] CoreDNS-001 starting
2016-09-17 21:24:39 +01:00
Yong Tang
953cfc1de4 Remove lumberjack logger (#257)
* Removed lumberjack from coremain

As is mentioned in 251, this fix removed lumberjack from coremain.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Remove lumberjack from log middleware

As mentioned in 251, lumberjack is not suitable for applications like CoreDNS
so it is removed from the log middleware.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update log/README.md as lumberjack has been removed

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Adjust default log output from `ioutil.Discard` to `os.Stdout`

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-16 15:50:16 +01:00
Miek Gieben
2dd8a687b3 Startup notification (#250)
Stop the caddy message and start our own init notifications.
Log the version of CoreDNS when starting up.
Fix all middleware's setup functions so that return the error prefixed
with *which* middleware was failing; leads to better debuggable errors
when starting up.
2016-09-10 09:16:25 +01:00
Miek Gieben
3fab9b1bfa caddy.CaddyfileFromPipe requires server type
Change to be inline with latest caddy changes, caddy.CaddyfileFromPipe
requires servertype argument.

Fixes: #243
2016-09-06 08:31:51 +00:00
Miek Gieben
2eac03896b Use Corefile
Fix the code copied from Caddy to refer to Corefile and make 'coredns'
with flags pickup a local Corefile.

Also remove some references to Caddy in the docs and output of coredns.

Fixes #235
2016-08-29 14:39:24 +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
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