summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdynsrv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dynsrv.sh b/dynsrv.sh
index 1232fc2..7adcbe0 100755
--- a/dynsrv.sh
+++ b/dynsrv.sh
@@ -1,5 +1,8 @@
#! /bin/sh
-host=`host -t srv _radsec._tcp.$1|cut -d\ -f8`
+srv=`host -t srv _radsec._tcp.$1`
+host=`echo $srv|cut -d\ -f8`
+port=`echo $srv|cut -d\ -f7`
echo "server $1-$host {"
echo " host $host"
+echo " port $port"
echo "}"