Git Product home page Git Product logo

aliyun-ddns's People

Contributors

jancee avatar

Watchers

 avatar  avatar

aliyun-ddns's Issues

RecordID获取异常

在更新dns前,代码会先去查找相应dns记录的RecordID,随后依据该ID进行更新操作,但是在阿里云dns解析初始创建一个解析记录时若选择非默认线路时会额外创建一个默认线路解析记录,
tim 20181123115403
而阿里云的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

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.