aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
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 /make_slackware_live.sh
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.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh4
1 files changed, 2 insertions, 2 deletions
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: