Add support for serving /etc/hosts

This commit is contained in:
Eugene Bujak 2018-09-10 20:42:56 +03:00
parent 9c1dc6d373
commit c1e16cc584
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ const coreDNSConfigTemplate = `. {
{{if .QueryLogEnabled}}querylog{{end}}
}{{end}}
{{.Pprof}}
hosts {
fallthrough
}
{{if .UpstreamDNS}}forward . {{range .UpstreamDNS}}{{.}} {{end}}{{end}}
{{.Cache}}
{{.Prometheus}}