keeping the loopback ip as main tld of the host for simplicity of own lookup
This commit is contained in:
parent
45a70bc9b6
commit
1cff4bac8e
|
@ -24,8 +24,8 @@ case "$1" in
|
||||||
|
|
||||||
### START gather all the info from the box and generate the variabels
|
### START gather all the info from the box and generate the variabels
|
||||||
|
|
||||||
export LOOPBACKv4=$(dig a +short loopback.${HOSTNAME})
|
export LOOPBACKv4=$(dig a +short ${HOSTNAME})
|
||||||
export LOOPBACKv6=$(dig aaaa +short loopback.${HOSTNAME})
|
export LOOPBACKv6=$(dig aaaa +short ${HOSTNAME})
|
||||||
NODEASN=$(dig txt +short asn.${HOSTNAME})
|
NODEASN=$(dig txt +short asn.${HOSTNAME})
|
||||||
NODEASN="${NODEASN%\"}"
|
NODEASN="${NODEASN%\"}"
|
||||||
NODEASN="${NODEASN#\"}"
|
NODEASN="${NODEASN#\"}"
|
||||||
|
|
|
@ -16,8 +16,8 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install|upgrade)
|
install|upgrade)
|
||||||
export LOOPBACKv4=$(dig a +short loopback.${HOSTNAME})
|
export LOOPBACKv4=$(dig a +short ${HOSTNAME})
|
||||||
export LOOPBACKv6=$(dig aaaa +short loopback.${HOSTNAME})
|
export LOOPBACKv6=$(dig aaaa +short ${HOSTNAME})
|
||||||
NODEASN=$(dig txt +short asn.${HOSTNAME})
|
NODEASN=$(dig txt +short asn.${HOSTNAME})
|
||||||
NODEASN="${NODEASN%\"}"
|
NODEASN="${NODEASN%\"}"
|
||||||
NODEASN="${NODEASN#\"}"
|
NODEASN="${NODEASN#\"}"
|
||||||
|
|
Loading…
Reference in New Issue