yyqian / aliyun-ddns Goto Github PK
View Code? Open in Web Editor NEW利用阿里云解析的 API 实现动态域名解析的功能
License: Other
利用阿里云解析的 API 实现动态域名解析的功能
License: Other
就是这段代码 result.DomainRecords.Record,求助大佬这个怎么办
不知道如何使用啊,能不能出个教程哦,想把群晖的NAS用阿里云的DDNS
手机4G 应该也会类似宽带有运营商动态分配一个IP吧?
我的理解是只需要客户端调用阿里云的 API 修改 DNS 解析即可,为什么还要 Server,请帮忙解惑一下,可能我忽略了某些细节,谢谢!
是不是必须 要求 node.js 环境才能用? 还有就是 server-mode这个模式没搞懂是怎么使用的,感觉应该用客户端就可以了吧?
为什么还要用服务端?
使用server-mode出錯,服務器有ipv6,抓到的地址前面有::ffff:,請教怎麼改?我是小白
Fri Nov 08 2019 15:42:22 GMT+0800 (CST): [error] {"hostname":"abc.def.com","ip":"::ffff:113.52.13.27"}
一个问题:
同一域名下:有 txt格式的@域名,也会被改成A格式的域名;
Ubuntu 运行失败.没有任何提示.
请问服务端和客户端都安装在树莓派本地,可以实现动态域名解析嘛?
如题,如果注册了类似 ac.cn 的域名会显示 [error]
例如子域名@.example.com既有A记录又有MX记录
应该是查到了其他类型记录,将alidns.js中131行加上&& record.Type === updateParmas.Type就对了。顺便吐槽一下updateParmas的拼写 😄
使用时发现更新子域名时会出错 "Code":"IncorrectDomainUser","Message":"The domain name does not belong to this user."
,下面是我的解决办法:
因为有多级子域名,所以 RR
的获取方式改为
target.hostname.split('.').slice(0, -2).join('.')
DomainName
的获取方式改为
target.hostname.split('.').slice(-2).join('.')
更新子域名时,describeParams
要使用
const describeParams = {
Action: 'DescribeSubDomainRecords',
SubDomain: target.hostname
};
如果本次获取的IP和上次的一样就不发起请求
可否添加支持AAAA记录的功能?
如果有多个域名,应该怎么处理?
在下小白,这不是个问题贴,而是想通过这里帮助其他人解决一个问题:
我是在群晖NAS里,通过DDNS-aliyun的sh脚本配置一个自定义域名
按照sh aliyun.sh {AccessKeyId} {AccessKeySecret} example.com www 这个案例试了N次,结果都是脚本执行后,日志都是正常的将新IP指向我的域名,但在aliyun后台可以看到域名解析始终是没变化的,甚至删掉之后也不会新增;
遇到相似问题,把上面的{}都去掉再试试...注意保留空格;
以上,打扰了。。。
如题,hostname 只有一个字符串啊,要是多个子域名怎么分割呢?
入口地址的隐藏是什么意思,这个大概怎么解决,谢谢啦
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.