From 1cff4bac8e84478026a19493e9392e6449723ca6 Mon Sep 17 00:00:00 2001 From: toby Date: Mon, 1 Oct 2018 14:59:33 +0200 Subject: [PATCH] keeping the loopback ip as main tld of the host for simplicity of own lookup --- debian/wit-network-config.postinst | 4 ++-- debian/wit-network-config.preinst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/wit-network-config.postinst b/debian/wit-network-config.postinst index 4a9fccd..2ad5aaa 100755 --- a/debian/wit-network-config.postinst +++ b/debian/wit-network-config.postinst @@ -24,8 +24,8 @@ case "$1" in ### START gather all the info from the box and generate the variabels - export LOOPBACKv4=$(dig a +short loopback.${HOSTNAME}) - export LOOPBACKv6=$(dig aaaa +short loopback.${HOSTNAME}) + export LOOPBACKv4=$(dig a +short ${HOSTNAME}) + export LOOPBACKv6=$(dig aaaa +short ${HOSTNAME}) NODEASN=$(dig txt +short asn.${HOSTNAME}) NODEASN="${NODEASN%\"}" NODEASN="${NODEASN#\"}" diff --git a/debian/wit-network-config.preinst b/debian/wit-network-config.preinst index 60bcbf9..595a29d 100755 --- a/debian/wit-network-config.preinst +++ b/debian/wit-network-config.preinst @@ -16,8 +16,8 @@ set -e case "$1" in install|upgrade) - export LOOPBACKv4=$(dig a +short loopback.${HOSTNAME}) - export LOOPBACKv6=$(dig aaaa +short loopback.${HOSTNAME}) + export LOOPBACKv4=$(dig a +short ${HOSTNAME}) + export LOOPBACKv6=$(dig aaaa +short ${HOSTNAME}) NODEASN=$(dig txt +short asn.${HOSTNAME}) NODEASN="${NODEASN%\"}" NODEASN="${NODEASN#\"}"