from .obj import PpBaseObjectError, PpBaseObject
from .pdns_record import PdnsApiRrset, PdnsSoaData
-__version__ = '0.5.2'
+__version__ = '0.5.3'
LOG = logging.getLogger(__name__)
# -------------------------------------------------------------------------
def get_ns_rrset(self, for_zone=None):
+ if self.verbose > 3:
+ rrrr = []
+ for rrset in self.rrsets:
+ rrrr.append(rrset.as_dict())
+ LOG.debug("Searching NS record set in:\n{}".format(pp(rrrr)))
+
for rrset in self.rrsets:
if rrset.type == 'NS':
if for_zone:
else:
if self.name.lower() != rrset.name.lower():
continue
+ if self.verbose > 3:
+ LOG.debug("Found NS RRSet:\n{}".format(pp(rrset.as_dict())))
return rrset
return None