Code Monkey home page Code Monkey logo

aliddns's Introduction

aliddns

aliddns by python

使用方式

首先打开脚本修改 aliddnsipv6_ak 以及 aliddnsipv6_sk ,获取方式见阿里云文档 https://help.aliyun.com/document_detail/34414.html

运行方式 python3 ./aliddns.py RR DomainName Type

使用方式(群晖DSM补充)

python3 ./aliddns.py RR DomainName Type 前加上 'export PYTHONIOENCODING=UTF-8' 设置截图 如果使用默认脚本还是出现各种问题请使用aliddns_eng.py

参数说明

  1. RR : 要设置的主机名,你要设置的域名前缀
  2. DomainName:域名 ,在阿里云购买的域名 例如 www.baidu.com ,www为RR,baidu.com 为DomainName
  3. Type:类型,IPv4 为 A,IPv6 为 AAAA
  4. value:值(可选),可以手动设置值,若不传改参数,则默认获取本机的地址

运行示例

  1. 设置本机外网ip python3 ./aliddns.py www baidu.com A

  2. 手动设置ip python3 ./aliddns.py www baidu.com A --value 1.1.1.1

aliddns's People

Contributors

trevid avatar shuli106 avatar jiangchao0304 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.