perlh / ddns

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ddns

A simple DNS server that also acts as a DDNS server the project is old

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


Languages

Language:Go 100.0%