bin/pdns-proxy

9 行
151 B
Plaintext
実行ファイル

#/bin/bash
#
HOST=`pdns-get $1`
if [[ $? -eq 0 ]]; then
socat stdio tcp:$HOST:22
else
>&2 echo CONNECTION ERROR: IP of host $1 is unknown.
fi