From 9127b7c859dea5d35acc266c6564bd6d4ca111a0 Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 30 May 2008 14:28:45 +0000 Subject: 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 --- dynsrv.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 "}" -- cgit v1.1