summaryrefslogtreecommitdiff
path: root/dynsrv.sh
blob: 1232fc28bffa8bb8cd7ffd0f6182ba0db4e2f1f5 (plain)
1
2
3
4
5
#! /bin/sh
host=`host -t srv _radsec._tcp.$1|cut -d\  -f8`
echo "server $1-$host {"
echo "    host $host"
echo "}"