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

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}}