mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Rename reverse zone constants (#1568)
Rename the constants to IP4arpa and IP6arpa (shorter and exported) and make IsReverse return the type of the reverse zone which could be handy for some callers. Also add tests for IsReverse()
This commit is contained in:
@@ -274,7 +274,7 @@ func (k *Kubernetes) Records(state request.Request, exact bool) ([]msg.Service,
|
||||
return nil, e
|
||||
}
|
||||
|
||||
if dnsutil.IsReverse(state.Name()) {
|
||||
if dnsutil.IsReverse(state.Name()) > 0 {
|
||||
return nil, errNoItems
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user