bin/pdns-get

11 lines
182 B
Plaintext
Raw Normal View History

2023-04-04 07:48:41 +02:00
#!/bin/bash
2023-04-04 07:23:18 +02:00
#
2023-04-04 07:48:41 +02:00
IP=`wget -O - stdout http://pdns.mount-mockery.de 2> /dev/null|jq .$1`
if [[ "$IP" = "null" ]]; then
echo No IP found for host $1.
exit 1
else
echo $IP
fi
2023-04-04 07:23:18 +02:00