]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
etc/config: added few YAML configs for testing
authorAleš Mrázek <ales.mrazek@nic.cz>
Wed, 18 Jun 2025 14:13:34 +0000 (16:13 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 4 Jul 2025 17:12:45 +0000 (19:12 +0200)
etc/config/config.test-defer.yaml [new file with mode: 0644]
etc/config/config.test-forward.yaml [new file with mode: 0644]
etc/config/config.test-local-data.yaml [new file with mode: 0644]
etc/config/config.test-rate-limiting.yaml [new file with mode: 0644]

diff --git a/etc/config/config.test-defer.yaml b/etc/config/config.test-defer.yaml
new file mode 100644 (file)
index 0000000..f1dd8a5
--- /dev/null
@@ -0,0 +1,3 @@
+defer:
+  enabled: true
+  log-period: 1s
diff --git a/etc/config/config.test-forward.yaml b/etc/config/config.test-forward.yaml
new file mode 100644 (file)
index 0000000..aed5a99
--- /dev/null
@@ -0,0 +1,18 @@
+forward:
+  - subtree: '.'
+    options:
+      dnssec: true
+      authoritative: false
+    servers:
+      - address: [2001:148f:fffe::1, 185.43.135.1]
+        transport: tls
+        hostname: odvr.nic.cz
+      - address: [ 192.0.2.1, 192.0.2.2 ]
+        transport: tls
+        pin-sha256:
+          - d6qzRu9zOECb90Uez27xWltNsj0e1Md7GkYYkVoZWmM=
+          - E9CZ9INDbd+2eRQozYqqbQ2yXLVKB9+xcprMF+44U1g=
+  - subtree: 1.168.192.in-addr.arpa
+    options:
+      dnssec: false
+    servers: [ 192.0.2.1@5353 ]
diff --git a/etc/config/config.test-local-data.yaml b/etc/config/config.test-local-data.yaml
new file mode 100644 (file)
index 0000000..467b4ad
--- /dev/null
@@ -0,0 +1,35 @@
+views:
+  - subnets: [127.0.0.0/24]
+    tags: [t01, t02]
+    options:
+      dns64: false
+  - subnets: [0.0.0.0/0, "::/0"]
+    answer: refused
+  - subnets: [10.0.10.0/24]
+    answer: allow
+
+local-data:
+  ttl: 60m
+  nodata: false
+  addresses:
+    foo.bar: 127.0.0.1
+  addresses-files:
+    - /etc/hosts
+  records: |
+    example.net. TXT "foo bar"
+     A 192.168.2.3
+     A 192.168.2.4
+    local.example.org AAAA ::1
+  rules:
+    - name: custom.example
+      address: 1.2.3.4
+      nodata: true
+      tags: [t01]
+    - subtree: empty
+      tags: [ t02 ]
+      name: [ example1.org ]
+    - subtree: nxdomain
+      name: [ sub4.example.org ]
+  rpz:
+    - file: blocklist.rpz
+      tags: [t01, t02]
diff --git a/etc/config/config.test-rate-limiting.yaml b/etc/config/config.test-rate-limiting.yaml
new file mode 100644 (file)
index 0000000..d8f7232
--- /dev/null
@@ -0,0 +1,2 @@
+rate-limiting:
+  rate-limit: 20