'Returns all names found in the Nginx Configuration.
:returns: All ServerNames, ServerAliases, and reverse DNS entries for
virtual host addresses
:rtype: set'

def get_all_names(self):

    all_names = set()
    for vhost in self.parser.get_vhosts():
        all_names.update(vhost.names)
        for addr in vhost.addrs:
            host = addr.get_addr()
            if common.hostname_regex.match(host):
                all_names.add(host)
            elif (not common.private_ips_regex.match(host)):
                try:
                    socket.inet_aton(host)
                    all_names.add(socket.gethostbyaddr(host)[0])
                except (socket.error, socket.herror, socket.timeout):
                    continue
    return util.get_filtered_names(all_names)
