dns-agent

command module
v0.0.0-...-05c5502 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

README

dns-agent

Agent for updating IP record into DnsPod.cn

Golang写的用于定时更新DnsPod中的IP记录的定时更新器 现在设定为每60秒更新一次。

参数配置请修改config.json文件

config.json

{
  "debug": true,
  "interval": 60,
  "login_email": "***@163.com",//登陆DNSPOD用到的邮箱名
  "login_pwd": "******",  //登陆DNSPOD的密码
  "domains": [
    {
      "domain_name": "12345.com",  //域名名称,该域名的解析DNS要首先转入到DnsPod
      "record_names": ["@", "www", "jenkins", "kubeapi", "etcd", "ops"] //子域名的前缀
    },
    {
      "domain_name": "yuming.org",
      "record_names": ["@", "www"]
    }
  ],
  "redis": {     //在IP变更的时候用作消息队列
      "enabled": true,
      "dsn": "******",
      "passwd": "******",
      "maxIdle": 5,
      "connTimeout": 5000,
      "readTimeout": 5000,
      "writeTimeout": 5000
  }
}

如有任何疑问,请联系coraldane@163.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
g

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL