keeping the loopback ip as main tld of the host for simplicity of own lookup

This commit is contained in:
toby 2018-10-01 14:59:33 +02:00
parent 45a70bc9b6
commit 1cff4bac8e
2 changed files with 4 additions and 4 deletions

View File

@ -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#\"}"

View File

@ -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#\"}"