me
/
guix
Archived
1
0
Fork 0

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>
Lilah Tascheter 2023-07-04 19:10:21 -05:00 committed by Ludovic Courtès
parent d17c403115
commit 489abccd5f
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 6 additions and 1 deletions

View File

@ -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)))))