]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: bump *_SEARCH_DOMAIN_MAX to 1024
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Jul 2025 11:57:56 +0000 (20:57 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 30 Jul 2025 17:57:09 +0000 (18:57 +0100)
As prompted by #38393, search domains may be large when a complicated
network setting is used, especially when VPN is used. Let's bump the
limit to 1024.

Note, this does not bump the maximum number of DNS servers, as setting
thousands of DNS servers is spurious and mostly meaningless. Let's keep
the maximum for a while until someone requests to also bump them.

Continuation of b950ee06e647d753db2047c1bb5345c94391be3e.

Closes #38393.

src/resolve/resolved-dns-delegate.h
src/resolve/resolved-link.h
src/resolve/resolved-manager.h

index 509cc06335e26780b54a0c807f4db4f663934f21..ccf3d225c628241c6acabe05e9b12fd571baa68e 100644 (file)
@@ -4,7 +4,7 @@
 #include "list.h"
 #include "resolved-forward.h"
 
-#define DELEGATE_SEARCH_DOMAINS_MAX 256
+#define DELEGATE_SEARCH_DOMAINS_MAX 1024
 #define DELEGATE_DNS_SERVERS_MAX 256
 
 /* A DnsDelegate object is used to manage additional, explicitly configured unicast DNS lookup scopes,
index 71f92039d573392fec1f397ec88320975e0becf2..44a6b511c1b67c84b1ba64ae6667bbfb22b46ca5 100644 (file)
@@ -9,7 +9,7 @@
 #include "resolve-util.h"
 #include "resolved-forward.h"
 
-#define LINK_SEARCH_DOMAINS_MAX 256
+#define LINK_SEARCH_DOMAINS_MAX 1024
 #define LINK_DNS_SERVERS_MAX 256
 
 typedef struct LinkAddress {
index 98e1f4e1d2a6fff9acc59c50df60da19dccb37bf..67ef4a86fa619ebcc9d8864364ad96d7fdeb14f7 100644 (file)
@@ -15,7 +15,7 @@
 #include "resolved-etc-hosts.h"
 #include "resolved-forward.h"
 
-#define MANAGER_SEARCH_DOMAINS_MAX 256
+#define MANAGER_SEARCH_DOMAINS_MAX 1024
 #define MANAGER_DNS_SERVERS_MAX 256
 
 typedef struct Manager {