A bin folder, holding helpfull scripts and commands
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910
  1. #!/bin/bash
  2. #
  3. IP=`wget -O - stdout http://pdns.mount-mockery.de 2> /dev/null|jq .$1`
  4. if [[ "$IP" = "null" ]]; then
  5. echo No IP found for host $1.
  6. exit 1
  7. else
  8. echo $IP
  9. fi