diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-02-09 10:58:13 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-06-12 10:32:28 +0200 |
commit | 4c61643d1e4983525a9b3f4958b1839149a1981f (patch) | |
tree | b7f740bf076fc3c489a50c455e253d1226a7c747 /daemon/lua | |
parent | ci lint:scan-build: adjust the error count (diff) | |
download | knot-resolver-4c61643d1e4983525a9b3f4958b1839149a1981f.tar.xz knot-resolver-4c61643d1e4983525a9b3f4958b1839149a1981f.zip |
lib/rules: add NXDOMAIN (pseudo-)zones
It's questionable which SOA owner to use, but some users will surely
prefer NXDOMAINs to empty zones.
Diffstat (limited to 'daemon/lua')
-rw-r--r-- | daemon/lua/kres-gen-30.lua | 1 | ||||
-rw-r--r-- | daemon/lua/kres-gen-31.lua | 1 | ||||
-rw-r--r-- | daemon/lua/kres-gen-32.lua | 1 | ||||
-rwxr-xr-x | daemon/lua/kres-gen.sh | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/daemon/lua/kres-gen-30.lua b/daemon/lua/kres-gen-30.lua index dd671d15..17057283 100644 --- a/daemon/lua/kres-gen-30.lua +++ b/daemon/lua/kres-gen-30.lua @@ -469,6 +469,7 @@ int kr_view_insert_action(const char *, const char *); int kr_view_select_action(const struct kr_request *, knot_db_val_t *); int kr_rule_tag_add(const char *, kr_rule_tags_t *); int kr_rule_local_data_emptyzone(const knot_dname_t *, kr_rule_tags_t); +int kr_rule_local_data_nxdomain(const knot_dname_t *, kr_rule_tags_t); typedef struct { int sock_type; _Bool tls; diff --git a/daemon/lua/kres-gen-31.lua b/daemon/lua/kres-gen-31.lua index 370de143..05b9e2cf 100644 --- a/daemon/lua/kres-gen-31.lua +++ b/daemon/lua/kres-gen-31.lua @@ -469,6 +469,7 @@ int kr_view_insert_action(const char *, const char *); int kr_view_select_action(const struct kr_request *, knot_db_val_t *); int kr_rule_tag_add(const char *, kr_rule_tags_t *); int kr_rule_local_data_emptyzone(const knot_dname_t *, kr_rule_tags_t); +int kr_rule_local_data_nxdomain(const knot_dname_t *, kr_rule_tags_t); typedef struct { int sock_type; _Bool tls; diff --git a/daemon/lua/kres-gen-32.lua b/daemon/lua/kres-gen-32.lua index 899c05cf..2521a6b4 100644 --- a/daemon/lua/kres-gen-32.lua +++ b/daemon/lua/kres-gen-32.lua @@ -480,6 +480,7 @@ int kr_view_insert_action(const char *, const char *); int kr_view_select_action(const struct kr_request *, knot_db_val_t *); int kr_rule_tag_add(const char *, kr_rule_tags_t *); int kr_rule_local_data_emptyzone(const knot_dname_t *, kr_rule_tags_t); +int kr_rule_local_data_nxdomain(const knot_dname_t *, kr_rule_tags_t); typedef struct { int sock_type; _Bool tls; diff --git a/daemon/lua/kres-gen.sh b/daemon/lua/kres-gen.sh index 5af527ae..fe7af5e9 100755 --- a/daemon/lua/kres-gen.sh +++ b/daemon/lua/kres-gen.sh @@ -289,6 +289,7 @@ ${CDEFS} ${LIBKRES} functions <<-EOF kr_view_select_action kr_rule_tag_add kr_rule_local_data_emptyzone + kr_rule_local_data_nxdomain EOF |