From 90c17c79de14b51d1979c67650177b784216487c Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Tue, 25 Jan 2022 19:47:02 +0300 Subject: [PATCH] Pull request: home: mv local domain name to dhcp setts Closes #3367. Squashed commit of the following: commit e2cabcac2d91af24b9e5f4ac8f78daf5e8d339b9 Author: Ainar Garipov Date: Tue Jan 25 19:35:31 2022 +0300 home: imp test, skip dhcp test on windows commit e58053f11e081630ad4e8d1e77a7a74226029db0 Merge: ff2fe87d 0b72bcc5 Author: Ainar Garipov Date: Tue Jan 25 19:10:25 2022 +0300 Merge branch 'master' into 3367-dhcp-local-domain-name commit ff2fe87d8cab12e60d045be636e366e392d6d96f Author: Ainar Garipov Date: Thu Dec 30 20:55:34 2021 +0300 home: mv local domain name to dhcp setts --- CHANGELOG.md | 25 ++++++++++++++++ internal/aghnet/dhcp_unix.go | 2 +- internal/dhcpd/dhcpd.go | 53 +++++++++++++++++++++------------ internal/dhcpd/dhcpd_test.go | 22 +++++++------- internal/dhcpd/http.go | 15 ++++++---- internal/dhcpd/nullbool_test.go | 14 ++++----- internal/dhcpd/v4.go | 9 +++--- internal/dnsforward/dns.go | 7 +++-- internal/home/clients_test.go | 17 +++++++---- internal/home/config.go | 15 ++++------ internal/home/dns.go | 2 +- internal/home/upgrade.go | 49 +++++++++++++++++++++++++++++- internal/home/upgrade_test.go | 47 ++++++++++++++++++++++++++++- 13 files changed, 208 insertions(+), 69 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 709e8fe0..02f1daed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,9 +21,33 @@ and this project adheres to ### Changed +- The setting `local_domain_name` is now in the `dhcp` block in the + configuration file to avoid confusion ([#3367]). - The `dns.bogus_nxdomain` configuration file parameter now supports CIDR notation alongside IP addresses ([#1730]). +#### Configuration Changes + +In this release, the schema version has changed from 12 to 13. + +- Parameter `local_domain_name`, which in schema versions 12 and earlier used to + be a part of the `dns` object, is now a part of the `dhcp` object: + + ```yaml + # BEFORE: + 'dns': + # … + 'local_domain_name': 'lan' + + # AFTER: + 'dhcp': + # … + 'local_domain_name': 'lan' + ``` + + To rollback this change, move the parameter back into `dns` and change the + `schema_version` back to `12`. + ### Deprecated