diff --git a/dns/middleware.go b/dns/middleware.go index edc42c42..b456f855 100644 --- a/dns/middleware.go +++ b/dns/middleware.go @@ -37,6 +37,7 @@ func withFakeIP(cache *cache.Cache, pool *fakeip.Pool) handler { putMsgToCache(cache, ip.String(), msg) setMsgTTL(msg, 1) + w.WriteMsg(msg) return } }