bin/pdns-proxy

9 lines
151 B
Plaintext
Raw Normal View History

2023-04-04 07:48:41 +02:00
#/bin/bash
2023-04-04 07:23:18 +02:00
#
HOST=`pdns-get $1`
2023-04-04 07:48:41 +02:00
if [[ $? -eq 0 ]]; then
socat stdio tcp:$HOST:22
else
>&2 echo CONNECTION ERROR: IP of host $1 is unknown.
fi