def get_alias(ip):
 hosts = _list_hosts()
 if (ip in hosts):
  return hosts[ip]
 return []

def get_alias ( ip ) : hosts = _list_hosts ( ) if ( ip in hosts ) : return hosts [ ip ] return [ ]
return the list of aliases associated with an ip aliases are returned in the order in which they appear in the hosts file .