louielong / aliyun-ddns Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jancee/wjx-aliyun-python-ddns
为阿里云注册的域名实现DDNS动态解析功能(类似花生壳),使用Python实现并支持docker。
License: MIT License
This project forked from jancee/wjx-aliyun-python-ddns
为阿里云注册的域名实现DDNS动态解析功能(类似花生壳),使用Python实现并支持docker。
License: MIT License
在更新dns前,代码会先去查找相应dns记录的RecordID,随后依据该ID进行更新操作,但是在阿里云dns解析初始创建一个解析记录时若选择非默认线路时会额外创建一个默认线路解析记录,
而阿里云的sdk在获取记录RecordID时没有指明线路(Line)
的接口,因此会同时返回相同记录
的多个线路的值,代码选择获取recordID的方式太粗暴,只会选取第一个RecordID因此无法获得后续的ID
<RR>www</RR>
<Status>ENABLE</Status>
<Value>118.145.7.171</Value>
<Weight>1</Weight>
<RecordId>41621651540xxx</RecordId>
<Type>A</Type>
<DomainName>xxx</DomainName>
<Locked>false</Locked>
<Line>default</Line>
<TTL>600</TTL>
</Record>
<Record>
<RR>www</RR>
<Status>ENABLE</Status>
<Value>10.10.10.100</Value>
<Weight>1</Weight>
<RecordId>41621651495xxx</RecordId>
<Type>A</Type>
<DomainName>xxx</DomainName>
<Locked>false</Locked>
<Line>unicom</Line>
<TTL>600</TTL>
</Record>
需要增加xml解析判断返回的ReorderID
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.