Skip to content
/ ddns Public
forked from perlh/ddns

DDNS服务器和客户端,自动更新域名解析到本机IP

Notifications You must be signed in to change notification settings

ncusec/ddns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddns

A simple DNS server that also acts as a DDNS server

usage

server

./ddns -s ./conf/ddns.conf 

server

client

./ddns -c ./conf/ddns-client.conf

client

test

dns_test

DDNS Server API

POST show

名称 位置 类型 必选 说明
body body object none
» token body string none

返回示例

{"code":200,"msg":"","data":[{"domain":"a.baidu.co,","value":"192.168.1.1","dns_type":"A","ttl":0},{"domain":"aaaa.baidu.com","value":"\u003cnil\u003e","dns_type":"A","ttl":0},{"domain":"cname.baidu.com","value":"cname.baidu.co","dns_type":"CNAME","ttl":0}]}

500 Response

{"code":500,"msg":"","data":""}

POST update

名称 位置 类型 必选 说明
body body object none
» domain body string none
» dnsType body string none
» value body string none
» token body string none

返回示例

{"code":200,"msg":""}

POST register

名称 位置 类型 必选 说明
body body object none
» root_token body string none
» user body string none
» password body string none

返回示例

{"code":200,"msg":""}

POST create_domain

名称 位置 类型 必选 说明
body body object none
» dns_type body string none
» value body string none
» time body string none
» token body string none

返回示例

{"code":200,"msg":""}

About

DDNS服务器和客户端,自动更新域名解析到本机IP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%