more docs

This commit is contained in:
Miek Gieben 2015-08-26 07:35:55 +01:00
parent 0ce87cb3da
commit aec78ad5e4

View File

@ -114,6 +114,8 @@ func normalizedString(r RR) (string, int) {
return string(b[:len(b)-cut]), ttlStart return string(b[:len(b)-cut]), ttlStart
} }
// needsDeletion checks if the RR is masked by either a CNAME or a DNAME.
// If so it return true.
func needsDeletion(r RR, s string, cname, dname []string) bool { func needsDeletion(r RR, s string, cname, dname []string) bool {
if r.Header().Rrtype == TypeCNAME || r.Header().Rrtype == TypeDNAME { if r.Header().Rrtype == TypeCNAME || r.Header().Rrtype == TypeDNAME {
return false return false