summaryrefslogtreecommitdiff
path: root/dynsrv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dynsrv.sh')
-rwxr-xr-xdynsrv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dynsrv.sh b/dynsrv.sh
index be37601..1232fc2 100755
--- a/dynsrv.sh
+++ b/dynsrv.sh
@@ -1,2 +1,5 @@
#! /bin/sh
-host -t srv _radsec._tcp.$1|cut -d\ -f8
+host=`host -t srv _radsec._tcp.$1|cut -d\ -f8`
+echo "server $1-$host {"
+echo " host $host"
+echo "}"