]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: update dev config with policy rules
authorAleš Mrázek <ales.mrazek@nic.cz>
Tue, 13 Jun 2023 14:08:05 +0000 (16:08 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 14 Jun 2023 08:12:15 +0000 (08:12 +0000)
manager/etc/knot-resolver/config.dev.yml
manager/etc/knot-resolver/config.policy.dev.yml [deleted file]

index 7555b98c734461d554c8656c7cf911da357cd99e..c6b55c180e1e47f0b09dc7b913ae37c79572a6c6 100644 (file)
@@ -12,3 +12,44 @@ logging:
 network:
   listen:
     - interface: 127.0.0.1@5353
+views:
+  - subnets: [127.0.0.0/24]
+    tags: [t01, t02, t03]
+    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
+  records: |
+    example.net. TXT "foo bar"
+     A 192.168.2.3
+     A 192.168.2.4
+    local.example.org AAAA ::1
+  subtrees:
+    - type: empty
+      tags: [ t2 ]
+      roots: [ example1.org ]
+    - type: nxdomain
+      roots: [ sub4.example.org ]
+  rpz:
+    - file: runtime/blocklist.rpz
+      tags: [t01, t02]
+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 ]
+        pin-sha256: ['YQ==', 'Wg==']
+  - subtree: 1.168.192.in-addr.arpa
+    options:
+      dnssec: false
+    servers: [ 192.0.2.1@5353 ]
diff --git a/manager/etc/knot-resolver/config.policy.dev.yml b/manager/etc/knot-resolver/config.policy.dev.yml
deleted file mode 100644 (file)
index b93fcce..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-rundir: runtime
-workers: 1
-management:
-  interface: 127.0.0.1@5000
-cache:
-  storage: cache
-logging:
-  level: notice
-  groups:
-    - manager
-    - supervisord
-network:
-  listen:
-    - interface: 127.0.0.1@5353
-
-views:
-  - subnets: [127.0.0.0/24]
-    tags: [t01, t02, t03]
-    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
-  records: |
-    example.net. TXT "foo bar"
-     A 192.168.2.3
-     A 192.168.2.4
-    local.example.org AAAA ::1
-  subtrees:
-    - type: empty
-      tags: [ t2 ]
-      roots: [ example1.org ]
-    - type: nxdomain
-      roots: [ sub4.example.org ]
-  rpz:
-    - file: runtime/blocklist.rpz
-      tags: [t01, t02]
-
-#   ttl: 1d
-#   nodata: true
-#   addresses:
-#     foo.bar: [ 127.0.0.1, "::1" ]
-#     my.pc.corp: 192.168.12.95
-#   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
-
-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 ]
-        pin-sha256: ['YQ==', 'Wg==']
-  - subtree: 1.168.192.in-addr.arpa
-    options:
-      dnssec: false
-    servers: [ 192.0.2.1@5353 ]