Code Monkey home page Code Monkey logo

gcoreip2cfddns's Introduction

cmliu/GcoreIP2CFDDNS

这是一个用 CloudflareSpeedTest 自动测速GcoreIP脚本,能够测试并更新到 Cloudflare DNS 记录。

用法

在运行脚本之前,请确保你已经获取了CloudFlare账户邮箱(auth_email)和API密钥(auth_key)。

修改脚本中的配置参数,包括CloudFlare账户邮箱、API密钥、域名等信息。

下载脚本:

wget -N -P GcoreIP2CFDDNS https://mirror.ghproxy.com/https://raw.githubusercontent.com/cmliu/GcoreIP2CFDDNS/main/speed.sh && cd GcoreIP2CFDDNS && chmod +x speed.sh 

运行脚本:

./speed.sh [二级域名] [更新IP数量] [主域名] [CloudFlare邮箱] [CloudFlare API密钥]

例如:给gcore.xxxx.com更新4条IP

./speed.sh gcore 4 xxxx.com [email protected] xxxxxxxxxxxxxxx

参数说明

二级域名:例如 gcore、cdn、yx 等。

主域名:你的 Cloudflare 主域名。

[CloudFlare邮箱](可选):Cloudflare账户邮箱,如果不提供,则使用脚本中的默认邮箱。

[CloudFlare API密钥](可选):Cloudflare账户API密钥,如果不提供,则使用脚本中的默认API密钥。

推送通知

脚本支持Telegram推送通知,你可以配置 telegramBotUserId 和 telegramBotToken,并选择是否使用官方Telegram API或自定义API。

telegramBotUserId=""   # Telegram用户ID
telegramBotToken="6599852032:AAHhetLKhXfAIjeXgCHpish1DK_NHo3BCrk"   # Telegram机器人Token 默认https://t.me/ACFST_DDNS_bot
telegramBotAPI="api.telegram.org"     # Telegram推送API,默认为官方API

感谢

xiaodao2026MaxMindP3TERXXIU2

gcoreip2cfddns's People

Contributors

cmliu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.