diff --git a/README.md b/README.md index b6824c0..3e702c7 100644 --- a/README.md +++ b/README.md @@ -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", diff --git a/handler/dnspod/dnspod_handler.go b/handler/dnspod/dnspod_handler.go index 31e8277..1aaa27e 100644 --- a/handler/dnspod/dnspod_handler.go +++ b/handler/dnspod/dnspod_handler.go @@ -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 }