GithubHelp home page GithubHelp logo

dnspod-ros's Introduction

DNSPOD Updater

通过 PPPoE 拨号配置文件激发 DNSPOD API 查询域名解析来变更A记录。

正常 PPPoE 拨号会改变 IP ,感觉作者很棒,比利用 System/Scheduler 定时轮询好的多。

Winbox 操作

1,在左侧 System 选单中寻找 Scripts 打开选卡后 点击 ”+“

Name 栏填入: dnspod_updater

Source 栏填入: dnspod_updater 脚本内容并且按脚本提示更改

然后 Apply 后 OK 。

2,打开左侧 PPP 选单,打开 Profiles 选卡后 点击 ”+“

选卡 General/Name 填入: pppoe-clien-profile

选卡 Scripts/On UP 填入:

delay 5s
:execute "dnspod_updater"

该选卡的其他选项可以参考 Profiles 选卡下默认的 default 条目。

然后 Apply 后 OK 。

3,打开左侧 Interface 选单,在 Interface 选卡中寻找 PPPoE 拨号项目 ( Type为PPPoE Client 那项 ) 双击打开,在选卡 Dial Out 中

Profile 栏选择: pppoe-clien-profile

然后 Apply 后 OK 。注意:此操作会导致重新拨号。

4,打开左侧 Log 查看,看到类似记录

PPPoE: authenticated PPPoE: connected [www.abc.com]成功更新IP为:1.1.1.1 ... ... ...

表示操作成功。

dnspod-ros's People

Contributors

arho14 avatar thxplus 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.