These are chat archives for CZ-NIC/knot-resolver

11th
Feb 2019
edoo
@ookangzheng
Feb 11 03:30
Can I have this regex inside knot-resolver?
(^|\.)wpad$
.+(xn--).+
^(.+[-_.])??xn--
Petr Špaček
@pspacek
Feb 11 10:03
@ookangzheng Hi. It is not clear what you are trying to achieve. What is the regex for?
edoo
@ookangzheng
Feb 11 10:37
block all .wpad and IDN Non-ASCii domain
so far I use policy.pattern
I think daf regex is dirrerent from policy.pattern
is there any regex documentation for knot-resolver use?
I only know regex for Javascript only, but it is different here
Vladimír Čunát
@vcunat
Feb 11 11:04
@ookangzheng our docs provide a link. It's lua patterns: http://lua-users.org/wiki/PatternsTutorial
(unfortunately it's a bit different from the most common family of perl-like regexes)
edoo
@ookangzheng
Feb 11 12:27
Cool, Thanks