MCPcopy Index your code
hub / github.com/OpenOSINT/OpenOSINT / _handle_dns

Function _handle_dns

openosint/cli.py:550–560  ·  view source on GitHub ↗
(
    domain: str,
    timeout: int,
    json_output: bool = False,
)

Source from the content-addressed store, hash-verified

548
549
550async def _handle_dns(
551 domain: str,
552 timeout: int,
553 json_output: bool = False,
554) -> None:
555 print(f"[*] DNS lookup: {domain}", file=sys.stderr)
556 result = await run_dns_osint(domain=domain, timeout_seconds=timeout)
557 if json_output:
558 _emit_json(format_tool_result("search_dns", domain, result))
559 else:
560 _print_result(result)
561
562
563async def _handle_ip2location(

Callers 1

_async_mainFunction · 0.85

Calls 4

run_dns_osintFunction · 0.90
format_tool_resultFunction · 0.90
_emit_jsonFunction · 0.85
_print_resultFunction · 0.70

Tested by

no test coverage detected