]> granicus.if.org Git - pdns/commit
dnsdist: Implement DNSAction.Spoof. Support IPv6-only SpoofAction
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Jan 2016 11:00:01 +0000 (12:00 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Jan 2016 11:00:01 +0000 (12:00 +0100)
commit7791f83a7846e0bb9a51c91f07a586cd0385643d
tree3e1554e48bc6f586d52a81e8961963de4082ad68
parent439b8c5842016335474a10bb5b62c73b8fc53348
dnsdist: Implement DNSAction.Spoof. Support IPv6-only SpoofAction

DNSAction.Spoof can be used to return a spoofed response from
a Lua rule. It supports an IPv4 (A), IPv6 (AAAA) or a DNSName
(CNAME).
SpoofAction() can be used IPv6-only, by passing a IPv6 as the
first parameter. It now supports spoofing IPv4-only, IPv6-only,
IPv4 and IPv6, and CNAME.
Closes #3064.
pdns/README-dnsdist.md
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsrulactions.hh
regression-tests.dnsdist/test_Advanced.py