Skip to content

lishewen/DNSPod4NETCore2

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

DNSPod4NETCore2

DNSPod API For NETCore 2.x;.Net Core 3;.Net 5;.Net 6

支持 Asp .Net Core DI

移植自:https://gitee.com/zhengwei804/DNSPodForNET

现已上架Nuget:DNSPod4NETCore2DNSPod4NETCore2

DNSPod4NETCore2.Cli

配上一个Cli的例子,可用于修改域名记录,使用 .net core global tools 实现

可通过下面命令安装获取

dotnet tool install -g dnspod

使用

dnspod [option]

参数表

  • -t,--Token : API Token.格式:[api_id],[api_token]
  • -d,--DomainName : 域名.如:lishewen.com
  • -r,--RecordId : RecordId.不输入则通过Record.List接口查询返回,多一次请求
  • -v,--Value : 记录值.
  • -s,--SubDomain : 子域名.如:www
  • --type : 记录类型.如:A、TXT等。不输入则默认为A记录