From 8894f29a4ed2a5205c64c2c99857c19aae96c7cc Mon Sep 17 00:00:00 2001 From: Nick Rosbrook Date: Fri, 30 Jan 2026 14:34:33 -0500 Subject: [PATCH] dns-configuration: add DNSSEC support boolean to DNSConfiguration This is one of several commits to dispatch all fields of the DNSConfiguration JSON. --- src/shared/dns-configuration.c | 1 + src/shared/dns-configuration.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/shared/dns-configuration.c b/src/shared/dns-configuration.c index e148c2f8fd2..1003f497fa4 100644 --- a/src/shared/dns-configuration.c +++ b/src/shared/dns-configuration.c @@ -258,6 +258,7 @@ static int dispatch_dns_configuration(const char *name, sd_json_variant *variant { "currentServer", SD_JSON_VARIANT_OBJECT, dispatch_dns_server, offsetof(DNSConfiguration, current_dns_server), 0 }, { "servers", SD_JSON_VARIANT_ARRAY, dispatch_dns_server_array, offsetof(DNSConfiguration, dns_servers), 0 }, { "searchDomains", SD_JSON_VARIANT_ARRAY, dispatch_search_domain_array, offsetof(DNSConfiguration, search_domains), 0 }, + { "dnssecSupported", SD_JSON_VARIANT_BOOLEAN, sd_json_dispatch_stdbool, offsetof(DNSConfiguration, dnssec_supported), 0 }, { "dnssec", SD_JSON_VARIANT_STRING, sd_json_dispatch_string, offsetof(DNSConfiguration, dnssec_mode_str), 0 }, { "dnsOverTLS", SD_JSON_VARIANT_STRING, sd_json_dispatch_string, offsetof(DNSConfiguration, dns_over_tls_mode_str), 0 }, { "llmnr", SD_JSON_VARIANT_STRING, sd_json_dispatch_string, offsetof(DNSConfiguration, llmnr_mode_str), 0 }, diff --git a/src/shared/dns-configuration.h b/src/shared/dns-configuration.h index af6e061780e..e195570b624 100644 --- a/src/shared/dns-configuration.h +++ b/src/shared/dns-configuration.h @@ -56,6 +56,7 @@ typedef struct DNSConfiguration { char **negative_trust_anchors; char *resolv_conf_mode_str; char *delegate; + bool dnssec_supported; } DNSConfiguration; DNSConfiguration* dns_configuration_free(DNSConfiguration *c); -- 2.47.3