summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-05-30 14:28:45 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-05-30 14:28:45 +0000
commit9127b7c859dea5d35acc266c6564bd6d4ca111a0 (patch)
tree1a030d20a89878f4a5fe5ca6f9371e5550a5b485
parent6515ce3d742c1273484a52833b157477575fdd99 (diff)
made example dynamic server srv record script also use port number
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@268 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-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 "}"