Giter Club home page Giter Club logo

dnspod_ddns_bashshell's Introduction

dnspod_ddns_bashshell

该脚本兼容openwrt,依赖ca-bundle和curl这两个软件. 需要有公网ip,需要先在web页面添加要更新的域名的a记录. 使用方法: 先到dnspod官网获取api token,位置为登陆后的 用户中心-安全设置-API Token,创建后获得id和token. 如果在路由器使用,并且路由器能获取到公网ip,请使用ddns_interface.sh 下载该脚本 wget https://raw.githubusercontent.com/ubitsp/dnspod_ddns_bashshell/master/ddns_interface.sh && chmod +x ddns_interface.sh 运行该脚本格式为 ddns_interface.sh id token 主机名 域名 接口名. 例如你要更新的域名为test.example.com 接口名称可以使用ifconfig获得,有公网ip的那个接口名称就是,假设接口名字为pppoe-wan 那么就输入 ddns_interface.sh 12345 12345678910abcdef123456 test example.com pppoe-wan,该脚本会在30秒后运行,然后每隔30秒检查ip有没有变更. 如果是在路由器后的设备运行该脚本,请使用ddns.sh,格式同上.但是不需要接口名 例如 ddns.sh 12345 12345678910abcdef123456 test example.com 已知问题,为了减少ping的调用次数,所以当在更新ip成功之后,如果在网页上手动更新a记录的话,那么除非接口ip发生改变或者重启脚本,否则不会自动更新

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.