[Dnscheck-dev] Filter not working

Calle Dybedahl calle at init.se
Mon Jan 27 08:27:29 UTC 2014


On 25 jan 2014, at 00:52, Anand Buddhdev <anandb at ripe.net> wrote:

> filters:
>  'NAMESERVER:NOT_AUTH':
>    - args: [ ns.ripe.net, 193.0.9.6 ]
>      level: WARNING
> 
> However, when I run dnscheck, I still get an error where I expected a
> warning (I've filtered out the INFO-level messages):
> 
> Have I misunderstood the filter syntax?

Not so much the filter syntax as YAML syntax. You need to make the value of args a YAML list, not a Perl list.

This bit works for me:

filters:
  'NAMESERVER:NOT_AUTH':
    - args:
        - 'ns.ripe.net'
        - '193.0.9.6'
      level: 'WARNING'

Running your example test and filtering on NAMESERVER:NOT_AUTH I get these:

 22.055: 14.109.in-addr.arpa WARNING [NAMESERVER:NOT_AUTH_UDP] 193.0.9.6
 22.056: 14.109.in-addr.arpa WARNING [NAMESERVER:NOT_AUTH] ns.ripe.net;193.0.9.6;14.109.in-addr.arpa
 22.242: 14.109.in-addr.arpa WARNING [NAMESERVER:NOT_AUTH_UDP] 2001:67c:e0:0:0:0:0:6
 22.242: 14.109.in-addr.arpa ERROR [NAMESERVER:NOT_AUTH] ns.ripe.net;2001:67c:e0:0:0:0:0:6;14.109.in-addr.arpa

-- 
Calle Dybedahl
calle at init.se -*- +46 703 - 970 612



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iis.se/pipermail/dnscheck-dev/attachments/20140127/f34090de/attachment.html>


More information about the Dnscheck-dev mailing list