all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH container] setup: centos: separate dns-search list with semicolons
@ 2025-12-30 12:55 Maximiliano Sandoval
  0 siblings, 0 replies; only message in thread
From: Maximiliano Sandoval @ 2025-12-30 12:55 UTC (permalink / raw)
  To: pve-devel

This is a followup of 6e08c550.

Unlike the previous commit, the key `dns-search` is not documented as
part of the manual page `nm-settings-keyfile(5)`. Here we rely solely on
lists being generally semicolon-separated in NetworkManager and the test
case `Test_Wireless_Connection` [1, 2, 3].

[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/settings/plugins/keyfile/tests/test-keyfile-settings.c?ref_type=820e56c5df80d6f5a4019c82f0f60b3303ecfa17#L281
[2] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/settings/plugins/keyfile/tests/test-keyfile-settings.c?ref_type=820e56c5df80d6f5a4019c82f0f60b3303ecfa17#L370-L372
[3] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/settings/plugins/keyfile/tests/keyfiles/Test_Wired_Connection#L52

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 src/PVE/LXC/Setup/CentOS.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/LXC/Setup/CentOS.pm b/src/PVE/LXC/Setup/CentOS.pm
index 7bccca2..2469046 100644
--- a/src/PVE/LXC/Setup/CentOS.pm
+++ b/src/PVE/LXC/Setup/CentOS.pm
@@ -245,7 +245,7 @@ sub setup_network_with_networkmanager {
             }
             if (@name_servers_v4) {
                 $data .= "dns=" . join(';', @name_servers_v4) . "\n";
-                $data .= "dns-search=" . join(' ', PVE::Tools::split_list($searchdomains)) . "\n"
+                $data .= "dns-search=" . join(';', PVE::Tools::split_list($searchdomains)) . "\n"
                     if $searchdomains;
             }
         } else {
@@ -271,7 +271,7 @@ sub setup_network_with_networkmanager {
             }
             if (@name_servers_v6) {
                 $data .= "dns=" . join(';', @name_servers_v6) . "\n";
-                $data .= "dns-search=" . join(' ', PVE::Tools::split_list($searchdomains)) . "\n"
+                $data .= "dns-search=" . join(';', PVE::Tools::split_list($searchdomains)) . "\n"
                     if $searchdomains;
             }
         } else {
-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-30 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-30 12:55 [pve-devel] [PATCH container] setup: centos: separate dns-search list with semicolons Maximiliano Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal