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:
commit
81a561e076
@ -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",
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user