Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mulinbc/ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

DDNS

使用CloudFlare API实现ddns

配置文件路径conf/conf.json,使用前请修改以下项:

  • x_auth_email:CloudFlare的注册邮箱
  • x_auth_key:CloudFlare的API Key
  • dns_record:DNS记录
    • type:目前仅支持A记录
    • name:需要解析的域名
    • content:IP地址
    • proxied:CloudFlare CDN加速
      • true:启用
      • false:关闭
  • username: 邮箱的用户名
  • password": 邮箱的密码或授权码
  • host": smtp服务器地址
  • from": 发送方信息,发信昵称和发信地址
  • to": 接收邮件的帐号信息

配置示例文件如下:

{
 "get_ip": {
 "url": [
 "http://pv.sohu.com/cityjson?ie=utf-8",
 "http://ip.taobao.com/service/getIpInfo.php?ip=myip"
 ],
 "retry": 3,
 "duration": 3000000000
 },
 "secret": {
 "x_auth_email": "mulin@bbcclive.com",
 "x_auth_key": "1234567890abcdef1234567890abcdef12345"
 },
 "dns_record": [
 {
 "type": "A",
 "name": "bbcclive.com",
 "content": "1.1.1.1",
 "proxied": true
 },
 {
 "type": "A",
 "name": "www.bbcclive.com",
 "content": "2.2.2.2",
 "proxied": true
 }
 ],
 "mail": {
 "username": "example@bbcclive.com",
 "password": "abcdefghijklmnop",
 "host": "smtp.bbcclive.com",
 "port": "25",
 "from": "BBCC DDNS\u003cexample@bbcclive.com\u003e",
 "to": [
 "to@bbcclive.com"
 ],
 "subject": "DDNS update notification",
 "content": "Update DNS Record",
 "duration": 3000000000
 },
 "duration": 3000000000
}

About

Use the Cloudflare API to implement DDNS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /