From c1e16cc5842463bcac21e3fd4e4404cb3ca9a090 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Mon, 10 Sep 2018 20:42:56 +0300 Subject: [PATCH] Add support for serving /etc/hosts --- config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.go b/config.go index f0923601..3be34373 100644 --- a/config.go +++ b/config.go @@ -165,6 +165,9 @@ const coreDNSConfigTemplate = `. { {{if .QueryLogEnabled}}querylog{{end}} }{{end}} {{.Pprof}} + hosts { + fallthrough + } {{if .UpstreamDNS}}forward . {{range .UpstreamDNS}}{{.}} {{end}}{{end}} {{.Cache}} {{.Prometheus}}