File: add-edns0-and-trust-ad.patch

package info (click to toggle)
dnssec-trigger 0.17%2Brepack-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,956 kB
  • sloc: ansic: 18,699; sh: 976; makefile: 495; xml: 444; objc: 421; cpp: 18
file content (37 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From c1fe2e64c9fa0ac5099e67429de2860746d5a0a1 Mon Sep 17 00:00:00 2001
From: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
Date: Fri, 14 Aug 2020 10:55:28 +0200
Subject: [PATCH] - Add edns0 and trust-ad options when writing resolvconf to
 point   to 127.0.0.1, because unbound is set up to validate and supports  
 EDNS0.  Fixes #2 and #5.

---
 Changelog         | 5 +++++
 riggerd/reshook.c | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,8 @@
+14 August 2020: Wouter
+	- Add edns0 and trust-ad options when writing resolvconf to point
+	  to 127.0.0.1, because unbound is set up to validate and supports
+	  EDNS0.  Fixes #2 and #5.
+
 25 June 2018: Wouter
 	- Release 0.17.
 
--- a/riggerd/reshook.c
+++ b/riggerd/reshook.c
@@ -269,8 +269,10 @@
 #  endif
 	out = open_rescf(cfg);
 	if(!out) return;
-	/* write the nameserver records */
+	/* write the options and nameserver records */
 	prline(out, "nameserver 127.0.0.1\n");
+	prline(out, "options edns0\n");
+	prline(out, "options trust-ad\n");
 	close_rescf(cfg, out);
 #endif /* not on windows */
 }