mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
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:
@@ -28,7 +28,7 @@ func init() {
|
|||||||
DefaultInput: func() caddy.Input {
|
DefaultInput: func() caddy.Input {
|
||||||
return caddy.CaddyfileInput{
|
return caddy.CaddyfileInput{
|
||||||
Filepath: "Corefile",
|
Filepath: "Corefile",
|
||||||
Contents: []byte(".:" + Port + " {\nwhoami\n}\n"),
|
Contents: []byte(".:" + Port + " {\nwhoami\nlog\n}\n"),
|
||||||
ServerTypeName: serverType,
|
ServerTypeName: serverType,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user