]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #4787 from rgacogne/dnsdist-edit-ttls
authorRemi Gacogne <rgacogne@users.noreply.github.com>
Thu, 19 Jan 2017 19:42:37 +0000 (20:42 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Jan 2017 19:42:37 +0000 (20:42 +0100)
dnsdist: Allow TTL alteration via Lua

1  2 
pdns/README-dnsdist.md
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsparser.cc
pdns/dnsparser.hh

index 18ca113a35e552748a7dc29b25d6b7c293c0faa3,c03d9bb30843f756c0eadb83913562d20dcd4aa6..efbfd0f1c23807aacd0a338d4bffdab95511bc22
@@@ -570,9 -571,10 +571,11 @@@ Valid return values for `LuaAction` fun
   * DNSAction.None: continue to the next rule
   * DNSAction.Nxdomain: return a response with a NXDomain rcode
   * DNSAction.Pool: use the specified pool to forward this query
 + * DNSAction.Refused: return a response with a Refused rcode
   * DNSAction.Spoof: spoof the response using the supplied IPv4 (A), IPv6 (AAAA) or string (CNAME) value
  
+ The same feature exists to hand off some responses for Lua inspection, using `addLuaResponseAction(x, func)`.
  DNSSEC
  ------
  To provide DNSSEC service from a separate pool, try:
Simple merge
Simple merge
Simple merge
Simple merge