'Expects to find one or more
\'<hostname name="localhost.localdomain" type="PTR"/>\' in the host node.
@return A list of (hostname, hostname_type) or None'

def get_hostnames(self):

    for hostname in self.node.findall('hostnames/hostname'):
        (yield (hostname.attrib['name'], hostname.attrib['type']))
