default config: add log (#3269)

When there is no Corefile found we load the default. Add the log plugin
to it, so you can see queries actually landing in CoreDNS.

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2019-09-09 14:41:50 +01:00
committed by GitHub
parent 368440d6b2
commit be923eaf9b

View File

@@ -28,7 +28,7 @@ func init() {
DefaultInput: func() caddy.Input {
return caddy.CaddyfileInput{
Filepath: "Corefile",
Contents: []byte(".:" + Port + " {\nwhoami\n}\n"),
Contents: []byte(".:" + Port + " {\nwhoami\nlog\n}\n"),
ServerTypeName: serverType,
}
},