guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/13: services: dhcp-client-service-type: Support DDNS.


From: guix-commits
Subject: 03/13: services: dhcp-client-service-type: Support DDNS.
Date: Sat, 14 Oct 2023 16:49:26 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 489abccd5fb029be7277602058c81487d4ca07ec
Author: Lilah Tascheter <lilah@lunabee.space>
AuthorDate: Tue Jul 4 19:10:21 2023 -0500

    services: dhcp-client-service-type: Support DDNS.
    
    * gnu/services/networking.scm (dhcp-client-shepherd-service): Enable -I
      flag on dhclient.
    
    Co-authored-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/services/networking.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index f4aff2d979..99889e3072 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -353,7 +353,12 @@
 
                          (false-if-exception (delete-file #$pid-file))
                          (let ((pid (fork+exec-command
-                                     (cons* dhclient "-nw"
+                                     ;; By default dhclient uses a
+                                     ;; pre-standardization implementation of
+                                     ;; DDNS, which is incompatable with
+                                     ;; non-ISC DHCP servers; thus, pass '-I'.
+                                     ;; <https://kb.isc.org/docs/aa-01091>.
+                                     (cons* dhclient "-nw" "-I"
                                             "-pf" #$pid-file ifaces))))
                            (and (zero? (cdr (waitpid pid)))
                                 (read-pid-file #$pid-file)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]