]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dns-configuration: add DNSSEC support boolean to DNSConfiguration
authorNick Rosbrook <enr0n@ubuntu.com>
Fri, 30 Jan 2026 19:34:33 +0000 (14:34 -0500)
committerNick Rosbrook <enr0n@ubuntu.com>
Tue, 3 Feb 2026 20:07:41 +0000 (15:07 -0500)
This is one of several commits to dispatch all fields of the
DNSConfiguration JSON.

src/shared/dns-configuration.c
src/shared/dns-configuration.h

index e148c2f8fd29b479a1f07f460c071387ace5a2a2..1003f497fa47f0044b9847a37c87013deb3560cd 100644 (file)
@@ -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             },
index af6e061780e132f3b3e4dd5f9f57efd6a0c240c7..e195570b6242aa7b9ab4708c5be4087936b1c6a7 100644 (file)
@@ -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);