jeessy2/ddns-go · error
域名 %s 未配置可更新的源站记录
Error message
域名 %s 未配置可更新的源站记录
What it means
A generic empty-result guard at the end of getDesiredOriginRecords: after checking both Ipv4Domains and Ipv6Domains membership, no origin record was appended, meaning the domain appears in neither list. The offending input is the domain tuple's primary domain name, which yields zero desired origin records for addUpdateOriginGroups.
Source
Thrown at dns/edgeone_origin.go:179
}
records = append(records, EdgeOneOriginRecord{
Record: eo.Domains.Ipv4Addr,
Type: edgeoneOriginRecordType,
Weight: weight,
})
}
if eo.hasDomain(eo.Domains.Ipv6Domains, domainName) {
if eo.Domains.Ipv6Addr == "" {
return nil, fmt.Errorf("未能获取域名 %s 对应的 IPv6 地址", domain)
}
records = append(records, EdgeOneOriginRecord{
Record: eo.Domains.Ipv6Addr,
Type: edgeoneOriginRecordType,
Weight: weight,
})
}
if len(records) == 0 {
return nil, fmt.Errorf("域名 %s 未配置可更新的源站记录", domain)
}
return records, nil
}
func (eo *EdgeOne) hasDomain(domains []*config.Domain, fullDomain string) bool {
for _, domain := range domains {
if domain != nil && domain.String() == fullDomain {
return true
}
}
return false
}
func (eo *EdgeOne) getOriginWeight(domain *config.Domain) int {
weight := 100
if domain == nil {
return weightView on GitHub (pinned to 5874c2e666)
Solutions
- Add the domain to either Ipv4Domains or Ipv6Domains in the EdgeOne domain configuration
- Fix a typo or mismatch between the configured domain name and the one being evaluated
- If the domain should not have an EdgeOne origin group, exclude it from the addUpdateOriginGroups workflow
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at dns/edgeone_origin.go:179 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jeessy2/ddns-go@5874c2e666 (2026-09-03).
Data as JSON: /api/errors/41009013be0a8a7c.
Report an issue: GitHub.