def resolve_domains(domains, disable_zone=False):
dnsresolver = dns.resolver.Resolver()<EOL>ips = []<EOL>for domain in domains:<EOL><INDENT>print_notification("<STR_LIT>".format(domain))<EOL>try:<EOL><INDENT>result = dnsresolver.query(domain, '<STR_LIT:A>')<EOL>for a in result.response.answer[<NUM_LIT:0>]:<EOL><INDENT>ips.append(str(a))<EOL>if not disable_zone:<EOL><INDENT>ips.extend(zone_transfer(str(a), domain))<EOL><DEDENT><DEDENT><DEDENT>except dns.resolver.NXDOMAIN as e:<EOL><INDENT>print_error(e)<EOL><DEDENT><DEDENT>return ips<EOL>
Resolves the list of domains and returns the ips.