@classmethod<EOL><INDENT>def nslookup(cls):<DEDENT>
try:<EOL><INDENT>if "<STR_LIT>" in PyFunceble.INTERN:  <EOL><INDENT>if not Check().is_ip_valid():<EOL><INDENT>request = PyFunceble.socket.getaddrinfo(<EOL>PyFunceble.INTERN["<STR_LIT>"],<EOL><NUM_LIT>,<EOL><NUM_LIT:0>,<EOL><NUM_LIT:0>,<EOL>PyFunceble.socket.IPPROTO_TCP,<EOL>)<EOL>for sequence in request:<EOL><INDENT>PyFunceble.INTERN["<STR_LIT>"]["<STR_LIT>"].append(<EOL>sequence[-<NUM_LIT:1>][<NUM_LIT:0>]<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>request = PyFunceble.socket.gethostbyaddr(<EOL>PyFunceble.INTERN["<STR_LIT>"]<EOL>)<EOL>PyFunceble.INTERN["<STR_LIT>"]["<STR_LIT>"][<EOL>"<STR_LIT>"<EOL>] = request[<NUM_LIT:0>]<EOL>PyFunceble.INTERN["<STR_LIT>"]["<STR_LIT>"][<EOL>"<STR_LIT>"<EOL>] = request[<NUM_LIT:1>]<EOL>PyFunceble.INTERN["<STR_LIT>"]["<STR_LIT>"]["<STR_LIT>"] = request[<EOL><NUM_LIT:2><EOL>]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if not Check().is_ip_valid():<EOL><INDENT>PyFunceble.socket.getaddrinfo(<EOL>PyFunceble.INTERN["<STR_LIT>"],<EOL><NUM_LIT>,<EOL><NUM_LIT:0>,<EOL><NUM_LIT:0>,<EOL>PyFunceble.socket.IPPROTO_TCP,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>PyFunceble.socket.gethostbyaddr(PyFunceble.INTERN["<STR_LIT>"])<EOL><DEDENT><DEDENT>return True<EOL><DEDENT>except (OSError, PyFunceble.socket.herror, PyFunceble.socket.gaierror):<EOL><INDENT>return False<EOL><DEDENT>
Implementation of UNIX nslookup.