Add support for serving /etc/hosts
This commit is contained in:
parent
9c1dc6d373
commit
c1e16cc584
@ -165,6 +165,9 @@ const coreDNSConfigTemplate = `. {
|
|||||||
{{if .QueryLogEnabled}}querylog{{end}}
|
{{if .QueryLogEnabled}}querylog{{end}}
|
||||||
}{{end}}
|
}{{end}}
|
||||||
{{.Pprof}}
|
{{.Pprof}}
|
||||||
|
hosts {
|
||||||
|
fallthrough
|
||||||
|
}
|
||||||
{{if .UpstreamDNS}}forward . {{range .UpstreamDNS}}{{.}} {{end}}{{end}}
|
{{if .UpstreamDNS}}forward . {{range .UpstreamDNS}}{{.}} {{end}}{{end}}
|
||||||
{{.Cache}}
|
{{.Cache}}
|
||||||
{{.Prometheus}}
|
{{.Prometheus}}
|
||||||
|
Loading…
Reference in New Issue
Block a user