mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
chore: make the dns handler error log and readme.md more specificlly
This commit is contained in:
parent
d1019c5cc1
commit
af9a1bb0da
@ -130,12 +130,11 @@ For Cloudflare, you need to provide email & Global API Key as password, and conf
|
|||||||
|
|
||||||
### Config example for DNSPod
|
### 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
|
```json
|
||||||
{
|
{
|
||||||
"provider": "DNSPod",
|
"provider": "DNSPod",
|
||||||
"password": "",
|
|
||||||
"login_token": "your_id,your_token",
|
"login_token": "your_id,your_token",
|
||||||
"domains": [{
|
"domains": [{
|
||||||
"domain_name": "example.com",
|
"domain_name": "example.com",
|
||||||
|
@ -64,7 +64,7 @@ func (handler *Handler) DomainLoop(domain *godns.Domain, panicChan chan<- godns.
|
|||||||
subDomainID, ip := handler.GetSubDomain(domainID, subDomain)
|
subDomainID, ip := handler.GetSubDomain(domainID, subDomain)
|
||||||
|
|
||||||
if subDomainID == "" || ip == "" {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user