about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2024-03-06 12:39:42 -0500
committerNick Cao <nickcao@nichi.co>2024-03-06 13:41:24 -0500
commit3b7625845b295f82ea819c55ac4a5a498d3ceba0 (patch)
treed31e3c8072c0fc809a1d4eadb9b9acbed973c173 /nixos
parenta206ca147ce85feb07d8966a2c4c0c5029bd624a (diff)
nixosTests.knot: test zone transfer over quic
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/knot.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/nixos/tests/knot.nix b/nixos/tests/knot.nix
index c5af8bf1edcc9..eec94a22f2fa7 100644
--- a/nixos/tests/knot.nix
+++ b/nixos/tests/knot.nix
@@ -66,6 +66,10 @@ in {
             "0.0.0.0@53"
             "::@53"
            ];
+          listen-quic = [
+            "0.0.0.0@853"
+            "::@853"
+           ];
           automatic-acl = true;
         };
 
@@ -129,8 +133,13 @@ in {
           key = "xfr_key";
         };
 
+        remote.primary-quic = {
+          address = "192.168.0.1@853";
+          key = "xfr_key";
+          quic = true;
+        };
+
         template.default = {
-          master = "primary";
           # zonefileless setup
           # https://www.knot-dns.cz/docs/2.8/html/operation.html#example-2
           zonefile-sync = "-1";
@@ -139,8 +148,14 @@ in {
         };
 
         zone = {
-          "example.com".file = "example.com.zone";
-          "sub.example.com".file = "sub.example.com.zone";
+          "example.com" = {
+            master = "primary";
+            file = "example.com.zone";
+          };
+          "sub.example.com" = {
+            master = "primary-quic";
+            file = "sub.example.com.zone";
+          };
         };
 
         log.syslog.any = "debug";