From patchwork Sat Jan 11 22:09:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 36979 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 66DF527BBEA; Sat, 11 Jan 2025 22:10:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8B8C527BBE2 for ; Sat, 11 Jan 2025 22:10:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWjgD-0002du-53; Sat, 11 Jan 2025 17:10:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWjgA-0002aE-N7 for guix-patches@gnu.org; Sat, 11 Jan 2025 17:10:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWjgA-0004zd-D3 for guix-patches@gnu.org; Sat, 11 Jan 2025 17:10:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=fAJTbi8yvcJtWL+4t4omo0Bo81ptHsuJUbfHGXm6BOY=; b=u25Bc5D7N+gxPk3c9TyPHB6ms0JNQGQnECmb3NH8o4AjyJ0VNj/E6tg4e6ck8p0UPWD5/mgMa7SALQcRtiwALctLnFaej1WxRccMAYN27WOv+LIQ0DQXzr0YtA2rR9FEZU6AM/xs0aeBWROasqLlrCRMXoOOSNxA9if6nsf6/5wDcw6nXn8u/L/vkpgn8Fl+7uAX3uvIEYK3ZqQWAC7h0ky47eRwQqg/3+qgtef788bLcO3rJKbe7WNcX31IXbS50iuEKx5np3Ep+ZFkpQPWRYmMaZ45ymXdrfoGL9VFVG5f6B1mQuxpSYikXTVocdyXWf9tauijv7A0A6VG06OiGg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tWjg9-0007mM-VI for guix-patches@gnu.org; Sat, 11 Jan 2025 17:10:01 -0500 Subject: bug#68757: [PATCH v3 1/1] services: dns: Add unbound service Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 11 Jan 2025 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68757 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: soeren@soeren-tempel.net Cc: 68757-done@debbugs.gnu.org Mail-Followup-To: 68757@debbugs.gnu.org, ludo@gnu.org, soeren@soeren-tempel.net Received: via spool by 68757-done@debbugs.gnu.org id=D68757.173663339029874 (code D ref 68757); Sat, 11 Jan 2025 22:10:01 +0000 Received: (at 68757-done) by debbugs.gnu.org; 11 Jan 2025 22:09:50 +0000 Received: from localhost ([127.0.0.1]:45207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tWjfy-0007lj-1X for submit@debbugs.gnu.org; Sat, 11 Jan 2025 17:09:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38608) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tWjfv-0007lU-IU for 68757-done@debbugs.gnu.org; Sat, 11 Jan 2025 17:09:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWjfp-0004yI-Dc; Sat, 11 Jan 2025 17:09:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fAJTbi8yvcJtWL+4t4omo0Bo81ptHsuJUbfHGXm6BOY=; b=BfypFoVESYaCrKuH69lS PPsBAzYrVzePmnfVXXLtOJXnMa0PbLwxYMaen1LSxD5uD3NnQXMTV6n8N328H+VFAYGo5I4rvHjPA kVpI5cbPsMB7c1yvomyFqC/ZDXX3mMKhdtXvNNOZPj/s4yGitKkUw89gde3CBZouvge7K0PltboKi RhsveA2hbEr5CxQ8rONxqrXRAHWmYUpo+QA66w/U5F5+hPDigNLyE/p4HvCYf330QbF3+Rme9Xm8/ fsgusiP1OpUSdeYQA1aLQBdWieUzCTSE0CLXn4kpTOwpgjp+KtHkkGVSU0wCUu/Rmoxwmg2mqBtYJ Aqsbu6Xng8QmJA==; From: Ludovic =?utf-8?q?Court=C3=A8s?= In-Reply-To: <20250108211416.27602-1-soeren@soeren-tempel.net> (soeren@soeren-tempel.net's message of "Wed, 8 Jan 2025 22:13:54 +0100") References: <20240127121040.7156-2-soeren@soeren-tempel.net> <20250108211416.27602-1-soeren@soeren-tempel.net> Date: Sat, 11 Jan 2025 23:09:36 +0100 Message-ID: <87wmf1m28v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, soeren@soeren-tempel.net skribis: > From: Sören Tempel > > This allows using Unbound as a local DNSSEC-enabled resolver. This > commit also allows configuration of the Unbound DNS resolver via a > Scheme API. The API currently provides very common options and > includes an escape hatch to enable less common configurations. > > * gnu/service/dns.scm (unbound-serialize-field): New procedure. > * gnu/service/dns.scm (unbound-serialize-alist): New procedure. > * gnu/service/dns.scm (unbound-serialize-section): New procedure. > * gnu/service/dns.scm (unbound-serialize-string): New procedure. > * gnu/service/dns.scm (unbound-serialize-boolean): New procedure. > * gnu/service/dns.scm (unbound-serialize-list-of-strings): New procedure. > * gnu/service/dns.scm (unbound-zone): New record. > * gnu/service/dns.scm (unbound-serialize-unbound-zone): New procedure. > * gnu/service/dns.scm (unbound-serialize-list-of-unbound-zone): New procedure. > * gnu/service/dns.scm (unbound-remote): New record. > * gnu/service/dns.scm (unbound-serialize-unbound-remote): New procedure. > * gnu/service/dns.scm (unbound-server): New record. > * gnu/service/dns.scm (unbound-serialize-unbound-server): New procedure. > * gnu/service/dns.scm (unbound-configuration): New record. > * gnu/service/dns.scm (unbound-config-file): New procedure. > * gnu/service/dns.scm (unbound-shepherd-service): New procedure. > * gnu/service/dns.scm (unbound-account-service): New constant. > * gnu/service/dns.scm (unbound-service-type): New services. > * gnu/tests/dns.scm: New file. > * gnu/local.mk: Add new files. > * doc/guix.texi: Add documentation. > > Signed-off-by: Sören Tempel Applied with the cosmetic changes below and tweaks to the commit log, such as remove repetitions of the file name. Thanks! Ludo’. diff --git a/doc/guix.texi b/doc/guix.texi index a9b548cd45..3a64fede2d 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -135,6 +135,7 @@ Copyright @copyright{} 2024 Troy Figiel@* Copyright @copyright{} 2024 Sharlatan Hellseher@* Copyright @copyright{} 2024 45mg@* +Copyright @copyright{} 2025 Sören Tempel@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -34303,8 +34304,9 @@ DNS Services @subsubheading Unbound Service @defvar unbound-service-type -This is the type of the unbound service, whose value should be a -@code{unbound-configuration} object as in this example: +This is the type of the service to run @uref{https://www.unbound.net, +Unbound}, a validating, recursive, and caching DNS resolver. Its value +must be a @code{unbound-configuration} object as in this example: @lisp (service unbound-service-type