Skip to content

Commit

Permalink
chore(*) use getent hosts to resolve the IP
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
  • Loading branch information
Nikolay Nikolaev committed May 13, 2020
1 parent e249227 commit 7050efb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
#

function resolve_ip {
LC_ALL=C nslookup ${DATAPLANE_HOSTNAME} 2>/dev/null | sed -nr '/Name/,+1s|Address(es)?: *||p'
getent hosts ${DATAPLANE_HOSTNAME} 2>/dev/null | awk -e '{ print $1 }'
}

function fail {
Expand Down

0 comments on commit 7050efb

Please sign in to comment.