summaryrefslogtreecommitdiff
path: root/nocompile/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/libexec')
-rwxr-xr-xnocompile/libexec/gopherd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nocompile/libexec/gopherd.sh b/nocompile/libexec/gopherd.sh
index 768d02b..0b87223 100755
--- a/nocompile/libexec/gopherd.sh
+++ b/nocompile/libexec/gopherd.sh
@@ -10,7 +10,7 @@ if grep -v "^${base}" <<< "${realpath}" > /dev/null;then
exit 1
fi
myIP=$(/usr/local/bin/hop0 $(/usr/local/libexec/peerip))
-hostname=$(dig -x ${myIP} +short | head -n1 | rev | tail -c+2 | rev )
+hostname=$(rdns ${myIP})
if [ ! "${hostname}" ]; then
hostname=${myIP}
else