Commit 9127b7c8 authored by venaas's avatar venaas Committed by venaas

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
parent 6515ce3d
#! /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 "}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment