Created
January 16, 2019 23:12
-
-
Save akirayou/faf9d05d681a0aec4f64536bb866a8f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ID="お名前.comのID" | |
PW="パスワード" | |
IP=`curl -s 'https://api.ipify.org?format=txt'` | |
( | |
sleep 1 ; | |
echo "LOGIN"; | |
echo "USERID:${ID}"; | |
echo "PASSWORD:${PW}"; | |
echo "."; | |
sleep 1; | |
echo "MODIP"; | |
echo "HOSTNAME:SOME_YOURE_HOST_PART_ONLY"; | |
echo "DOMNAME:YOURE.DOMAIN"; | |
echo "IPV4:${IP}"; | |
echo "."; | |
sleep 1; | |
echo "LOGOUT"; | |
echo "."; | |
)|openssl s_client -connect ddnsclient.onamae.com:65010 -quiet >/dev/null 2>&1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment