dynsrv.sh 183 Bytes
Newer Older
venaas's avatar
venaas committed
1
#! /bin/sh
2 3 4
srv=`host -t srv _radsec._tcp.$1`
host=`echo $srv|cut -d\  -f8`
port=`echo $srv|cut -d\  -f7`
5 6
echo "server $1-$host {"
echo "    host $host"
7
echo "    port $port"
8
echo "}"