
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
提供阿里云的DDNS设置,支持多网卡多域名绑定。
每次运行时,会打印本地适配器信息,推荐根据网卡名绑定域名
必须在阿里云后台建立域名,记录值
填写什么无所谓。
阿里云AccessKey开通:https://help.aliyun.com/document_detail/38738.html
必要权限:UpdateDomainRecord,DescribeDomainRecords
node版本>=16
多网卡有什么用, 一些设备有可能接入多条线路,如:电信、联通、移动、海外线等,对每条线提供一个独立的域名很有必要~。
npm i -g ddns-ali
参数之间只能有一个空格, 如果是win环境需要在powershell中执行。
网卡查看命令 ifconfig
,一般为en0,en1等,选择有本地IP,如192.168.xx.xx的的进行绑定
多网卡绑定多域名方式:
ddns-ali -e true -AccessKey 123 -AccessKeySecret 123 -Domain 'eth0ð0.xxx.com,eth1ð1.xxx.com'
单域名方式 不指定网卡,会根据你当前的外网IP动态绑定,如果支持IPv6,会优先绑定
ddns-ali -e true -AccessKey 123 -AccessKeySecret 123 -Domain 'eth0.xxx.com'
指定IPv6方式
ddns-ali -e true -ip 6 -AccessKey 123 -AccessKeySecret 123 -Domain '网卡名ð0.xxx.com'
import { IConfig, mian, logConfig, getArgv, getDomain, log } from 'ddns-ali';
// logConfig.debug = true;// 是否输出日志信息
async function init(){
const config = {} as IConfig;
config.AccessKey = getArgv('AccessKey') as string;
config.AccessKeySecret = getArgv('AccessKeySecret') as string;
config.IPVersion = getArgv('ip') as any || '4';
config.DomainObj = getDomain(getArgv('Domain'));
config.Domain = config.DomainObj.domain;
config.Ethernets = config.DomainObj.ethernet;
const r = await mian(config);
if(r) {
log('---成功---');
}else{
log('---失败---');
}
}
true或false
true是命令行执行'网卡名1&域名1,网卡名2&域名2'
, 网卡名与域名通过‘&’进行连接,多个域名使用','分割4或6
指定要绑定的的ip类型程序不包含定时执行,现在各种系统都有定时任务。没必要在多此一举。节省系统资源。
#!/bin/bash
ddns-ali -e true -AccessKey 123 -AccessKeySecret 123 -Domain 'eth0ð0.xxx.com,eth1ð1.xxx.com'
# read
计划任务中
添加 run.sh
,mac/linux 可以在crontab
中添加 run.sh
完善ipv6支持
增加命令行下,版本输出
ddns-ali -v
增加命令行下,十秒后如果没有更新成功,强制关闭线程。
版本发布
FAQs
提供阿里云的DDNS设置,支持多网卡多域名绑定public
We found that ddns-ali demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.