def dns_resolve(self):
new_addresses = []<EOL>for address in self.addresses:<EOL><INDENT>try:<EOL><INDENT>info = getaddrinfo(address[<NUM_LIT:0>], address[<NUM_LIT:1>], <NUM_LIT:0>, SOCK_STREAM, IPPROTO_TCP)<EOL><DEDENT>except gaierror:<EOL><INDENT>raise AddressError("<STR_LIT>".format(address))<EOL><DEDENT>else:<EOL><INDENT>for _, _, _, _, address in info:<EOL><INDENT>if len(address) == <NUM_LIT:4> and address[<NUM_LIT:3>] != <NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>new_addresses.append(address)<EOL><DEDENT><DEDENT><DEDENT>self.addresses = new_addresses<EOL>
Perform DNS resolution on the contained addresses.

        :return: