五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Ros腳本-更新cloudflare域名

2023-08-11 00:01 作者:stan1  | 我要投稿

:local apiKey "yourapikey"

:local zoneID "yourzoneID"

:local domainName "yourdomainame"

:local ttl "600"

#設(shè)置撥號的網(wǎng)絡(luò)名

:local inf "pppoe-out1"


:local recordID ""

#自動獲取cloudflare域名id

:local result [/tool fetch mode=https url="https://api.cloudflare.com/client/v4/zones/$zoneID/dns_records/?name=$domainName" http-method=get http-header="Authorization: Bearer $apiKey" as-value output=user];

:if ($result->"status"= "finished") do={

#:log info $result->"data"->"result"->"id"

:set result [:pick $result 0 ]

:set recordID [:pick $result ([:find $result "\"id\":\""]+6) ([:find $result "\",\"zone_id"])]

:log info $recordID

} else={

:log info "獲取域名id失敗"

}

# Do not edit below

# 原腳本檢查出口ip,然后新舊ip對比,如果不同再更新,按需使用吧

#:local currentIP ([/tool fetch url="https://ifconfig.me/ip" mode=https output=user as-value]->"data")

#:local cloudflareDNSIP [:resolve $domainName server=1.1.1.1];

:local currentIP ""

:set currentIP [/ip address get [/ip address find interface=$inf] address]

:set currentIP [:pick $currentIP 0 ([len $currentIP] -3)]



:if ($currentIP != $cloudflareDNSIP) do={

? # If the IP has changed, update the Cloudflare record

? :log info ("Updating Cloudflare record.? New IP: " . $currentIP);

? :local payload ("{\"type\":\"A\",\"name\":\"" . $domainName . "\",\"content\":\"" . $currentIP . "\",\"ttl\":" . $ttl .",\"proxied\":false}")


? /tool fetch mode=https url="https://api.cloudflare.com/client/v4/zones/$zoneID/dns_records/$recordID" http-method=put http-header="Authorization: Bearer $apiKey"? http-data=$payload output=none;

}


Ros腳本-更新cloudflare域名的評論 (共 條)

分享到微博請遵守國家法律
治县。| 报价| 许昌市| 承德县| 荣成市| 惠安县| 龙里县| 武陟县| 东辽县| 新疆| 思南县| 东兴市| 武城县| 嵊州市| 娱乐| 靖宇县| 乐都县| 玉门市| 墨竹工卡县| 桦甸市| 阿巴嘎旗| 安龙县| 佳木斯市| 射洪县| 阿拉善盟| 东方市| 四子王旗| 青川县| 宣汉县| 无极县| 株洲市| 贺兰县| 永顺县| 盐池县| 比如县| 金平| 仁化县| 皮山县| 隆回县| 陆良县| 崇信县|