[dnsdist] Rule for specific IP

Alejandro Adroher Mellado alejandro.adroher at omniaccess.com
Tue Oct 31 10:04:27 UTC 2017


Thanks a lot Pieter! 

Hope you are having a good day! 


-----Original Message-----
From: dnsdist [mailto:dnsdist-bounces at mailman.powerdns.com] On Behalf Of Pieter Lexis
Sent: martes, 31 de octubre de 2017 10:08
To: dnsdist at mailman.powerdns.com
Subject: Re: [dnsdist] Rule for specific IP

Hi Alejandro,

On Tue, 31 Oct 2017 07:46:15 +0000
Alejandro Adroher Mellado <alejandro.adroher at omniaccess.com> wrote:

> A doubt that I have had for a long time.
> It is possible to add a rule to block a domain for a specific IP?

Yes there is, the following config will do this:

    addAction(AndRule({makeRule('google.com'), makeRule('127.0.0.1')}), DropAction())

This will block google.com (and everything under it) for 127.0.0.1/32.

Cheers,

Pieter
--
Pieter Lexis
PowerDNS.COM BV -- https://www.powerdns.com _______________________________________________
dnsdist mailing list
dnsdist at mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/dnsdist


More information about the dnsdist mailing list