summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Weiss <michael@primeos.dev>2020-10-10 12:10:52 +0000
committerMichael Weiss <dev.primeos@gmail.com>2020-10-10 17:41:42 +0200
commit826ed96c109d30ecfe1fc7dab927ded2ec08d0c5 (patch)
tree8dd576ffd4c1b7c5102deb2bdbcc897f1c376010
parent993713e6e300ff0e98744444dc99700563ebb92f (diff)
nixos/networking: Switch to home.arpa as an example for the domain
The special-use domain "home.arpa." is designated for non-unique use in residential home networks [0] and registered as such [1]. Therefore it is more appropriate than "home." which could cause conflicts or result in queries that leak out and reach the root name servers. [0]: https://tools.ietf.org/html/rfc8375 [1]: https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml
-rw-r--r--nixos/modules/tasks/network-interfaces.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index d369aab54571..5ddb12d15c31 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -470,7 +470,7 @@ in
networking.search = mkOption {
default = [];
- example = [ "example.com" "local.domain" ];
+ example = [ "example.com" "home.arpa" ];
type = types.listOf types.str;
description = ''
The list of search paths used when resolving domain names.
@@ -479,7 +479,7 @@ in
networking.domain = mkOption {
default = null;
- example = "home";
+ example = "home.arpa";
type = types.nullOr types.str;
description = ''
The domain. It can be left empty if it is auto-detected through DHCP.