1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

Merge pull request #38 from huwenchao/master

chore: make the dnspod handler error log and readme.md more specificlly
This commit is contained in:
Timothy 2019-05-13 17:08:19 +08:00 committed by GitHub
commit 81a561e076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -130,12 +130,11 @@ For Cloudflare, you need to provide email & Global API Key as password, and conf
### Config example for DNSPod
For DNSPod, you need to provide email & password, and config all the domains & subdomains.
For DNSPod, you need to provide your API Token(you can create it [here](https://www.dnspod.cn/console/user/security)), and config all the domains & subdomains.
```json
{
"provider": "DNSPod",
"password": "",
"login_token": "your_id,your_token",
"domains": [{
"domain_name": "example.com",

View File

@ -64,7 +64,7 @@ func (handler *Handler) DomainLoop(domain *godns.Domain, panicChan chan<- godns.
subDomainID, ip := handler.GetSubDomain(domainID, subDomain)
if subDomainID == "" || ip == "" {
log.Printf("domain: %s.%s subDomainID: %s ip: %s\n", subDomain, domain.DomainName, subDomainID, ip)
log.Printf("Domain or subdomain not configured yet. domain: %s.%s subDomainID: %s ip: %s\n", subDomain, domain.DomainName, subDomainID, ip)
continue
}