diff --git a/core/dnsserver/register.go b/core/dnsserver/register.go index 3c7610b83..55d311235 100644 --- a/core/dnsserver/register.go +++ b/core/dnsserver/register.go @@ -275,6 +275,10 @@ func propagateConfigParams(configs []*Config) { c.WriteTimeout = c.firstConfigInBlock.WriteTimeout c.IdleTimeout = c.firstConfigInBlock.IdleTimeout c.TsigSecret = c.firstConfigInBlock.TsigSecret + + // Propagate HTTPRequestValidateFunc so that custom path validators work in + // multi-transport blocks. Otherwise HTTPS 404s on non-"/dns-query" paths. + c.HTTPRequestValidateFunc = c.firstConfigInBlock.HTTPRequestValidateFunc } }