aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-03-06 12:22:22 +0100
committer Eric Hameleers <alien@slackware.com>2021-03-06 12:22:22 +0100
commit9107bbae89ba516154f71f17b1f8af6b99bf6be5 (patch)
tree340f5660dfa665bcfe69dd438de8d471c0a45c83
parentb7cc5b345406b09a358054ec31639527f363bceb (diff)
downloadliveslak-9107bbae89ba516154f71f17b1f8af6b99bf6be5.tar.gz
liveslak-9107bbae89ba516154f71f17b1f8af6b99bf6be5.tar.xz
Change domain 'example.net' to 'home.arpa' following RFC8375
Excerpt from RFC 8375 (https://tools.ietf.org/html/rfc8375): Users and devices within a home network (hereafter referred to as "homenet") require devices and services to be identified by names that are unique within the boundaries of the homenet [RFC7368]. The naming mechanism needs to function without configuration from the user. While it may be possible for a name to be delegated by an ISP, homenets must also function in the absence of such a delegation. This document reserves the name 'home.arpa.' to serve as the default name for this purpose, with a scope limited to each individual homenet.
-rw-r--r--README.txt2
-rw-r--r--liveinit.tpl2
-rwxr-xr-xmake_slackware_live.sh4
3 files changed, 4 insertions, 4 deletions
diff --git a/README.txt b/README.txt
index 1bb8b9c..5571787 100644
--- a/README.txt
+++ b/README.txt
@@ -352,7 +352,7 @@ cfg=[skip|write] =>
to disk.
domain=your_custom_domain =>
- Specify a custom domain name. Defaults to 'example.net'.
+ Specify a custom domain name. Defaults to 'home.arpa'.
hostname=your_custom_hostname[,qualifier] =>
Specify a custom hostname. A qualifier 'fixed' can be appended
diff --git a/liveinit.tpl b/liveinit.tpl
index 79da5bb..eb54b35 100644
--- a/liveinit.tpl
+++ b/liveinit.tpl
@@ -1189,7 +1189,7 @@ EOPW
if [ -z "$LIVE_DOMAIN" ]; then
# No custom domain on the boot commandline:
- LIVE_DOMAIN="example.net"
+ LIVE_DOMAIN="home.arpa"
fi
if [ ! -z "$LIVE_HOSTNAME" ]; then
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 8fb45eb..04bf07f 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1514,12 +1514,12 @@ else
fi
# Configure hostname and network:
-echo "${LIVE_HOSTNAME}.example.net" > ${LIVE_ROOTDIR}/etc/HOSTNAME
+echo "${LIVE_HOSTNAME}.home.arpa" > ${LIVE_ROOTDIR}/etc/HOSTNAME
if [ -f ${LIVE_ROOTDIR}/etc/NetworkManager/NetworkManager.conf ]; then
sed -i -e "s/^hostname=.*/hostname=${LIVE_HOSTNAME}/" \
${LIVE_ROOTDIR}/etc/NetworkManager/NetworkManager.conf
fi
-sed -e "s/^\(127.0.0.1\t*\)darkstar.*/\1${LIVE_HOSTNAME}.example.net ${LIVE_HOSTNAME}/" \
+sed -e "s/^\(127.0.0.1\t*\)darkstar.*/\1${LIVE_HOSTNAME}.home.arpa ${LIVE_HOSTNAME}/" \
-i ${LIVE_ROOTDIR}/etc/hosts
# Make sure we can access DNS straight away: