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:
parent
395b614349
commit
928de738dd
4 changed files with 43 additions and 14 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue