Compare commits

...

3 Commits

Author SHA1 Message Date
Yu Watanabe 9459e7500b
Merge ccd5b6797f into 8e7ef6abb8 2025-04-18 02:13:25 +01:00
Yu Watanabe 8e7ef6abb8 NEWS: mention integration-tests meson option is deprecated
Follow-up for 710653d3bc.
2025-04-18 09:36:29 +09:00
Yu Watanabe ccd5b6797f
Revert "resolve: query the parent zone for DS records"
This reverts commit 49ff90c70d.
2025-04-17 06:53:02 +09:00
4 changed files with 4 additions and 17 deletions

3
NEWS
View File

@ -96,6 +96,9 @@ CHANGES WITH 258 in spe:
continue to work, update to xf86-input-evdev >= 2.11.0 and continue to work, update to xf86-input-evdev >= 2.11.0 and
xf86-input-libinput >= 1.5.0 before updating to systemd >= 258. xf86-input-libinput >= 1.5.0 before updating to systemd >= 258.
* The meson option 'integration-tests' has been deprecated, and will be
removed in a future release.
— <place>, <date> — <place>, <date>
CHANGES WITH 257: CHANGES WITH 257:

View File

@ -548,12 +548,3 @@ int dns_question_merge(DnsQuestion *a, DnsQuestion *b, DnsQuestion **ret) {
*ret = TAKE_PTR(k); *ret = TAKE_PTR(k);
return 0; return 0;
} }
bool dns_question_contains_key_type(DnsQuestion *q, uint16_t type) {
DnsResourceKey *t;
DNS_QUESTION_FOREACH(t, q)
if (t->type == type)
return true;
return false;
}

View File

@ -61,8 +61,6 @@ static inline bool dns_question_isempty(DnsQuestion *q) {
int dns_question_merge(DnsQuestion *a, DnsQuestion *b, DnsQuestion **ret); int dns_question_merge(DnsQuestion *a, DnsQuestion *b, DnsQuestion **ret);
bool dns_question_contains_key_type(DnsQuestion *q, uint16_t type);
DEFINE_TRIVIAL_CLEANUP_FUNC(DnsQuestion*, dns_question_unref); DEFINE_TRIVIAL_CLEANUP_FUNC(DnsQuestion*, dns_question_unref);
#define _DNS_QUESTION_FOREACH(u, k, q) \ #define _DNS_QUESTION_FOREACH(u, k, q) \

View File

@ -713,11 +713,6 @@ DnsScopeMatch dns_scope_good_domain(
if (!dns_scope_get_dns_server(s)) if (!dns_scope_get_dns_server(s))
return DNS_SCOPE_NO; return DNS_SCOPE_NO;
/* Route DS requests to the parent */
const char *route_domain = domain;
if (dns_question_contains_key_type(question, DNS_TYPE_DS))
(void) dns_name_parent(&route_domain);
/* Always honour search domains for routing queries, except if this scope lacks DNS servers. Note that /* Always honour search domains for routing queries, except if this scope lacks DNS servers. Note that
* we return DNS_SCOPE_YES here, rather than just DNS_SCOPE_MAYBE, which means other wildcard scopes * we return DNS_SCOPE_YES here, rather than just DNS_SCOPE_MAYBE, which means other wildcard scopes
* won't be considered anymore. */ * won't be considered anymore. */
@ -726,7 +721,7 @@ DnsScopeMatch dns_scope_good_domain(
if (!d->route_only && !dns_name_is_root(d->name)) if (!d->route_only && !dns_name_is_root(d->name))
has_search_domains = true; has_search_domains = true;
if (dns_name_endswith(route_domain, d->name) > 0) { if (dns_name_endswith(domain, d->name) > 0) {
int c; int c;
c = dns_name_count_labels(d->name); c = dns_name_count_labels(d->name);