Pdns: Development plan to match the domain name mechanism?

Created on 26 Apr 2019  ·  2Comments  ·  Source: PowerDNS/pdns

such as this

abcRandom1.examlle.com -> abc*.example.com

abcRandom2.examlle.com -> abc*.example.com

like a Regular match rules.

Most helpful comment

The RegexRule could help you here:

addAction(RegexRule("abc.*\\.example\\.com"), DropAction())

All 2 comments

The RegexRule could help you here:

addAction(RegexRule("abc.*\\.example\\.com"), DropAction())

The RegexRule could help you here:

```lua
addAction(RegexRule("abc.*\.example\.com"), DropAction())

> ```

now i konw i must use dnsdist.

addAction(RegexRule("abc.*\\.example\\.com"), SpoofAction(172.16.254.5)

thanks a lot

Was this page helpful?
0 / 5 - 0 ratings