Skip to contentSkip to conversation

package/systemd: add dns-over-tls support

PATCH New James Hilliard 2 participants 2 messages Mar 8, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/systemd: add dns-over-tls support

Set default-dns-over-tls to opportunistic when dns-over-tls is enabled as it should be fully backwards compatible. The DNSOverTLS config in resolved.conf can be used to override default-dns-over-tls.

---
 package/systemd/systemd.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/systemd/systemd.mk +10 -0
index 1c3b81cfcb..d97336b7cd 100644
@@ -351,6 +351,16 @@ else
 SYSTEMD_CONF_OPTS += -Dresolve=false
 endif
 
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+SYSTEMD_CONF_OPTS += -Ddns-over-tls=gnutls -Ddefault-dns-over-tls=opportunistic
+SYSTEMD_DEPENDENCIES += gnutls
+else ifeq ($(BR2_PACKAGE_OPENSSL),y)
+SYSTEMD_CONF_OPTS += -Ddns-over-tls=openssl -Ddefault-dns-over-tls=opportunistic
+SYSTEMD_DEPENDENCIES += openssl
+else
+SYSTEMD_CONF_OPTS += -Ddns-over-tls=false -Ddefault-dns-over-tls=no
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
 SYSTEMD_CONF_OPTS += -Dtimesyncd=true
 SYSTEMD_TIMESYNCD_USER = systemd-timesync -1 systemd-timesync -1 * - - - Network Time Synchronization
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/systemd: add dns-over-tls support

Quoted 8 lines · On Sun, 8 Mar 2020 01:41:31 -0700 James Hilliard <[email protected]>…

Set default-dns-over-tls to opportunistic when dns-over-tls is enabled as it should be fully backwards compatible. The DNSOverTLS config in resolved.conf can be used to override default-dns-over-tls.

---
 package/systemd/systemd.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

Applied to next, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com