Giter Club home page Giter Club logo

huaweicloud_ddns's Introduction

Hey, all👋

I’m LYU Chengshang

a PhD student majoring in Bioinformatics and Computational Biology

I hope my repos could help you~

huaweicloud_ddns's People

Contributors

deepsource-io[bot] avatar lllvcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

huaweicloud_ddns's Issues

这是我在充分理解脚本后提出的几点修改建议

1.TARGET_IP变量在调用系统命令ifconfig时可以加入| grep 'inet6 (ipv6固定前缀)'来避免某些情况下公网ipv6地址行数跳变的情况,ipv6固定前缀可以只输入头4位如2049即可
2.建议加入对云解析地址与本机ipv6地址的比较判断,不同时则调用api修改,相同时则不做修改,以下是我魔改后获取云解析地址的代码
HWcloud_IP=$(echo $(curl -X GET -L -k "https://$DNS/v2/zones/$ZONE_ID/recordsets/$RECORDSET_ID" \ -H "X-Auth-Token: $TOKEN" \ -H "Content-Type: application/json" \ -H "X-Project-Id: $PROJECT_ID")| sed 's/,/\n/g'|grep 'records'| grep -oE '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))')
`其中有一个变量PROJECT_ID需要在华为云APIexplorer的showRecordSet中填写id后的调试结果中的请求头X-Project-Id看到

华为 云DNS解析添加 双栈出现 V6更新正常 V4不能更新

NJOS`JNE029%YA_}@HA~I7R
本来用的V4脚本一直正常 后来为了访问80端口我就 用大佬的V6解析脚本 解析V6也是正常解析 但是后来发现启用双栈后 导致v4就不能正常解析了运行V4脚本出错 , 如果删除AAAA记录 V4就能正常解析 不删除AAAA记录 双栈就出现下面是更新V4的错误代码
{"code":"DNS.0308","message":"Attribute 'records' is invalid. When type is 'AAAA', records should be ipv6 address list."}

X@`LSI3_7Q XLO1_AE~%H6F

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.