Hello and AndRule is one possible approach, but if you use a packet cache, you can also set maxNegativeTTL. This TTL will be used then for all NXDomain or NoData answers. See https://www.dnsdist.org/reference/config.html#packetcache
And AndRule would look like addResponseAction(AndRule{...}, ...) -Otto On Tue, Sep 23, 2025 at 07:14:36AM +0200, Tom via dnsdist wrote: > Hi list > > I'm struggling with implementing the following dnsdist rule/behavior: > If... > a) qname starts with "_acme-challenge" AND > b) qtype is TXT AND > c) RCODE is NXDOMAIN > then > lower the response TTL to 30s. > > What's the best way to achieve this? With a LUA rule or perhaps with > "addAction(AndRule..."? > > Thanks in advance for any hints. > Tom > _______________________________________________ > dnsdist mailing list > dnsdist@mailman.powerdns.com > https://mailman.powerdns.com/mailman/listinfo/dnsdist _______________________________________________ dnsdist mailing list dnsdist@mailman.powerdns.com https://mailman.powerdns.com/mailman/listinfo/dnsdist