ソスhソスソスソスCソスソスソスソスソス謫セ(MyDNS.JPソスソス)

ソスナ終ソスXソスVソスソスソスF 2022.10.04

ソスソスソスTソスv

ソスOソスソスソスソスソスソスcentossrv.mydns.jpソスニゑソスソスソスソスソスソスO(ソスhソスソスソスCソスソスソスソス)ソスナサソス[ソスoソス[ソスノアソスNソスZソスXソスナゑソスソスソス謔、ソスノゑソスソス驍スソス゚、ソスhソスソスソスCソスソスソスソスソスソスソス謫セソスソスソスソスB
ソスソスソスソスソスナゑソスMyDNS.JPソスフサソス[ソスrソスXソス利用ソスソスソスソスcentossrv.mydns.jpソスニゑソスソスソスソスhソスソスソスCソスソスソスソスソスソスソス謫セソスソスソスソスB

ソスソスcentossrv.mydns.jpソスヘ難ソスソスTソスCソスgソスフ暦ソスネので、ソスeソスソスソスナ置ソスソスソスソスソスソスソス驍アソスソス


ソスソスソスhソスソスソスCソスソスソスソスソス謫セ

ソスiソスPソスjソスソスソス[ソスUソス[ソスoソス^
JOIN USソスナソスソス[ソスUソス[ソスoソス^ソスソスソスソスB

ソスソスソスソスソスFソスソスソスソスソスフ趣ソスソスソスソスソスソスソスソス
ソスソスソスソスソスFソスソスソスソスソスソスIソスソス
ソスZソスソスソスFソスソスソスソスソスフ住ソスソスソスソスソスソスソス
ソスdソスbソスヤ搾ソスソスFソスソスソスソスソスフ電ソスbソスヤ搾ソスソスソスソスソスソス
ソスソスソス[ソスソス1:ソスソスソスソスソスフソスソス[ソスソスソスAソスhソスソスソスXソスソスソスソスソス
ソスmソスFソスpソスLソス[ソスソスソスソスヘゑソスソスト「ソスmソスFソスvソス{ソス^ソスソスソスソスソスソス
ソスソスソスヘ難ソスソスeソスソスソスmソスFソスソスソスト「ソスソスソスMソスvソス{ソス^ソスソスソスソスソスソス

ソスoソス^ソスソスソスソスソスソスソス[ソスソスソスAソスhソスソスソスXソスソスソスソスMasterIDソスソスPasswordソスソスソスハ知ソスソスソスソストゑソスソスソスフで確ソスFソスソスソスソスB

ソスiソスQソスjソスhソスソスソスCソスソスソスソスソス謫セ
Log InソスソスLOGINソスソスソスソスB

DOMAIN INFOソスナドソスソスソスCソスソスソスソスソスソスoソス^ソスソスソスソスB

DomainソスFソスソス]ソスソスソスソスhソスソスソスCソスソスソスソスソスソスソスソスヘソスソスソス:centossrv.mydns.jp
ソスuソスmソスFソスvソス{ソス^ソスソスソスソスソスソス
ソスソスソスヘ難ソスソスeソスソスソスmソスFソスソスソスト「ソスソスソスMソスvソス{ソス^ソスソスソスソスソスソス

ソスソスIPソスAソスhソスソスソスXソスフ趣ソスソスソスソスXソスV

ソスソスナ抵ソスIPソスAソスhソスソスソスXソスツ具ソスソスフ場合ソスAソスsソスソスソスソスソスIPソスAソスhソスソスソスXソスソスソスマゑソスソスソストゑソスソスワゑソスソスソスソスAIPソスAソスhソスソスソスXソスソスMyDNS.JPソスノ登ソス^ソスソスソスソスIPソスAソスhソスソスソスXソスニ変ゑソスソスソストゑソスソスワゑソスソスソスcentossrv.mydns.jpソスナサソス[ソスoソス[ソスノアソスNソスZソスXソスナゑソスソスネゑソスソスネゑソスソストゑソスソスワゑソスソスB
ソスソスソスソスソスナ、ソスソスソスソスIソスソスIPソスAソスhソスソスソスXソスフ変更ソスソスソス`ソスFソスbソスNソスソスソスAIPソスAソスhソスソスソスXソスソスソスマ更ソスソスソスソストゑソスソスソスソス鼾ソスヘ趣ソスソスソスソスソスMyDNS.JPソスヨ新ソスソスソスソスIPソスAソスhソスソスソスXソスソスoソス^ソスソスソスソス謔、ソスノゑソスソスAソスソスソスcentossrv.mydns.jpソスナサソス[ソスoソス[ソスノアソスNソスZソスXソスナゑソスソスソス謔、ソスノゑソスソスソスB
ソスワゑソスソスA1ソスTソスヤ以擾ソスIPソスAソスhソスソスソスXソスソスソスマゑソスソスネゑソスソス鼾ソスワゑソスソスヘ、ソスナ抵ソスIPソスAソスhソスソスソスXソスツ具ソスソスフ場合ソスA1ソスTソスヤ以擾ソスIPソスAソスhソスソスソスXソスフ更ソスVソスソスソスsソスソスネゑソスソスニエソスソスソス[ソスニなゑソスソストゑソスソスワゑソスソスBソスソスソスフゑソスソス゚、1ソスTソスヤに茨ソスxソスソスソスソスMyDNS.JPソスヨ新ソスソスソスソスIPソスAソスhソスソスソスXソスソスハ知ソスソスソスソス謔、ソスノゑソスソスソスB

ソスiソスPソスjIPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソス成
[root@centos ~]# vi /usr/local/bin/ddns-update.shソス@ソスソスソス@IPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソス成
#!/bin/bash

SCRIPT=${0}
MID=${1}
PASS=${2}
DOMAIN=${3}

# MyDNS.JPソスン抵ソスIPソスAソスhソスソスソスXソス謫セ
IPGETLOG=`host ${DOMAIN} ns0.mydns.jp 2>&1`
MYDNSIP=`echo "${IPGETLOG}" | grep "has address" | awk '{ print $NF }' | egrep ^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$`
[ $? -ne 0 ] && MYDNSIP=0.0.0.0

# ソスソスソスソスIPソスAソスhソスソスソスXソス謫セ
IPGETLOG=`curl inet-ip.info 2>&1`
echo "${IPGETLOG}" | egrep ^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$ > /dev/null 2>&1
if [ $? -eq 0 ]; then
    CURRENTIP=`echo "${IPGETLOG}" | tail -n 1 | awk '{ print $NF }'`
else
    echo "${DOMAIN} ソスソスソスソスIPソスAソスhソスソスソスXソスソスソスoソスGソスソスソス[" | logger -t $(basename $0)
    echo "${IPGETLOG}" | logger -t $(basename $0)
    exit
fi

# MyDNS.JPソスン抵ソスIPソスAソスhソスソスソスXソスXソスV
# (MyDNS.JPソスン抵ソスIPソスAソスhソスソスソスXソスソスソスソスソスソスIPソスAソスhソスソスソスXソスフ場合ソスワゑソスソスソスIPソスAソスhソスソスソスXソスソスソスソスソスXソスVソスwソスソスフゑソス)
if [ "${MYDNSIP}" != "${CURRENTIP}" ] || [ $# -eq 4 ]; then
    IPUPDATE=`wget -q -O - "https://www.mydns.jp/directip.html?MID=${MID}&PWD=${PASS}&IPV4ADDR=${CURRENTIP}"`
    echo ${IPUPDATE} | grep -q OK
    if [ $? -eq 0 ]; then
        echo "${DOMAIN} IPソスAソスhソスソスソスXソスXソスVソスソスソスソス to ${CURRENTIP}" | logger -t $(basename $0)
    else
        echo "${DOMAIN} IPソスAソスhソスソスソスXソスXソスVソスGソスソスソス[" | logger -t $(basename $0)
        echo ${IPUPDATE} | logger -t $(basename $0)
        (
        echo IP ADDRESS UPDATE ERROR
        echo ${IPUPDATE}
        ) | mail -s "${SCRIPT##*/} ERROR" root
        exit 1
    fi
fi

exit


[root@centos ~]# chmod +x /usr/local/bin/ddns-update.shソス@ソスソスソス@IPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスヨ趣ソスソスsソスソスソスソスソスtソスソス

ソスiソスQソスjIPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスソスソスs
[root@centos ~]# /usr/local/bin/ddns-update.sh MasterID Password centossrv.mydns.jp 1ソス@ソスソスソス@IPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスソスソスs
ソスソスIPソスAソスhソスソスソスXソスXソスVソスソスソスハゑソス/var/log/messagesソスノ保托ソスソスソスソスソスソス

ソスiソスRソスjIPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスソスソスソスソスソスソスソスソスソスsソスン抵ソス
[root@centos ~]# vi /etc/cron.d/ddns-updateソス@ソスソスソス@IPソスAソスhソスソスソスXソスXソスVソスソスソスソスソスソスソスソスソスソスsソスン抵ソスtソス@ソスCソスソスソス成
*/10 * * * * root /usr/local/bin/ddns-update.sh MasterID Password centossrv.mydns.jp
ソスソス10ソスソスソスソスソスソスIPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスソスソスソスソスsソスソスソスソス

[root@centos ~]# vi /etc/cron.weekly/ddns-updateソス@ソスソスソス@IPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスTソスソスソスソスソスソスソスソスソスsソスXソスNソスソスソスvソスgソス成
#!/bin/bash
/usr/local/bin/ddns-update.sh MasterID Password centossrv.mydns.jp 1

[root@centos ~]# chmod +x /etc/cron.weekly/ddns-updateソス@ソスソスソス@IPソスAソスhソスソスソスXソスXソスVソスXソスNソスソスソスvソスgソスTソスソスソスソスソスソスソスソスソスsソスXソスNソスソスソスvソスgソスヨ趣ソスソスsソスソスソスソスソスtソスソス

ソスソスソスhソスソスソスCソスソスソスソスソスmソスF

ソスン定しソスソスソスTソス[ソスoソス[ソスソスソスナ外ソスソスソスソスソスソスAソスNソスZソスXソスナゑソスソス驍ゥソスmソスFソスソスソスソスB
ソスソスソスhソスソスソスCソスソスソス謫セソスソス24ソス`48ソスソスソスヤ抵ソスソスxソスoソス゚鯉ソスノ行ソスソスソスソスソスソス(ソスソスソスソスソスAソスNソスZソスXソスナゑソスソスソス鼾ソスソスソスソスソスソス)

HostName Testソスナ「Enter a domain name or IP addressソスvソスソスソスノ設定しソスソスソスTソス[ソスoソス[ソスソス(ソスソスFcentossrv.mydns.jp)ソスソスソスソスヘゑソスソスト「Test Nowソスvソス{ソス^ソスソスソスソスソスソスソスソスソスソスソスソスB

ソスネ会ソスソスフようソスネ鯉ソスソスハゑソスソス\ソスソスソスソスソスソスソスソスOK
Domain name tested:	centossrv.mydns.jp
Test performed from:	New York, NY
Test performed at:	2022-10-04 08:35:46 (GMT +00:00)
Known IP Addresses:	XXX.XXX.XXX.XXX


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com