Update ddnspod.sh

This commit is contained in:
ProfFan committed 2015-07-26 23:00:44 +08:00
1 parent 5a95c53055
commit 882e441909
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ arDdnsUpdate() {
recordID=$(arApiPost "Record.List" "domain_id=${domainID}&sub_domain=${2}")
recordID=$(echo $recordID | sed 's/.\+\[{"id":"\([0-9]\+\)".\+/\1/')
# 更新记录IP
myIP=$(arNslookup)
myIP=$(arIpAdress)
recordRS=$(arApiPost "Record.Modify" "domain_id=${domainID}&record_id=${recordID}&sub_domain=${2}&record_type=A&value=${myIP}&record_line=默认")
recordCD=$(echo $recordRS | sed 's/.\+{"code":"\([0-9]\+\)".\+/\1/')
# 输出记录IP