summaryrefslogtreecommitdiff
path: root/dynsrv.sh
blob: 7adcbe03d1b6781b74be09ab27763f4850bf6bba (plain)
1
2
3
4
5
6
7
8
#! /bin/sh
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 "}"