(
domain: str,
timeout: int,
json_output: bool = False,
)
| 548 | |
| 549 | |
| 550 | async 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 | |
| 563 | async def _handle_ip2location( |
no test coverage detected