def _get_ipv6_from_dnsrecords(dnsrecords):
    """
    Find the AAAA record in dns records, and return tuple (id, address).
    """
    for rec in dnsrecords:
        if 'type' in rec:
            if rec['type'] == 'AAAA':
                return (rec['id'], rec['content'])
    return (None, None)