pdns scripts added

This commit is contained in:
Dirk Alders 2023-04-04 07:23:18 +02:00
parent 69f4203d60
commit bfe1e14475
3 changed files with 13 additions and 0 deletions

4
pdns-get Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
#
wget -O - stdout http://pdns.mount-mockery.de 2> /dev/null|jq .$1

5
pdns-proxy Executable file
View File

@ -0,0 +1,5 @@
#/bin/sh
#
HOST=`pdns-get $1`
socat stdio tcp:$HOST:22

4
pdns-register Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
#
wget -O - stdout http://pdns.mount-mockery.de/pdns/$(hostname) 2> /dev/null 1> /dev/null