mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
- add configuration to enable socks for domain update and telegram notification seperately. - sleep to reduce cpu usage while connection error occurred.
48 lines
999 B
JSON
48 lines
999 B
JSON
{
|
|
"provider": "DNSPod",
|
|
"password": "",
|
|
"login_token": "",
|
|
"domains": [
|
|
{
|
|
"domain_name": "example.com",
|
|
"sub_domains": [
|
|
"www",
|
|
"test"
|
|
]
|
|
},
|
|
{
|
|
"domain_name": "example2.com",
|
|
"sub_domains": [
|
|
"www",
|
|
"test"
|
|
]
|
|
}
|
|
],
|
|
"ip_url": "https://myip.biturl.top",
|
|
"ipv6_url": "https://api-ipv6.ip.sb/ip",
|
|
"ip_type": "IPv4",
|
|
"interval": 300,
|
|
"resolver": "8.8.8.8",
|
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36",
|
|
"ip_interface": "eth0",
|
|
"socks5_proxy": "",
|
|
"use_proxy": false,
|
|
"notify": {
|
|
"telegram": {
|
|
"enabled": false,
|
|
"bot_api_key": "",
|
|
"chat_id": "",
|
|
"message_template": "",
|
|
"use_proxy": false
|
|
},
|
|
"mail": {
|
|
"enabled": false,
|
|
"smtp_server": "",
|
|
"smtp_username": "",
|
|
"smtp_password": "",
|
|
"smtp_port": 25,
|
|
"send_to": ""
|
|
}
|
|
}
|
|
}
|