Resolves host using specified DNS record type. Record types: A, AAAA, CNAME, MX, TXT, NS, PTR, SRV, ANY. Returns map with results.
Example:
# Example for dns_resolve
dns_resolve("hello") # usage
Benchmarks HTTP requests to URL. Returns performance statistics with error breakdown.
Example:
# Example for http_benchmark
http_benchmark("hello", 42) # usage
Inspects HTTP headers for URL. Returns response headers and status.
Example:
# Example for http_headers
http_headers("hello") # usage
Performs ICMP ping to host. Returns map with latency, success, and error fields.
Performs ICMP traceroute to host. Returns slice of hop info. Requires root privileges.
Returns detailed info for all network interfaces.
Example:
# Example for net_interfaces_detailed net_interfaces_detailed() # usage
Returns all network connections across all available protocols.
Returns network connections in ESTABLISHED state.
Returns network connections on specific interface.
Returns network connections in LISTEN state.
Returns network connections for specific process ID.
Returns network connections filtered by specific protocol.
Returns detailed information about available protocols and their capabilities.
Returns list of available protocols for network monitoring.
Returns network interface statistics (if available).
Returns file descriptors and network connections (lsof equivalent).
Scans ports on host. Returns map of port to open/closed.
Example:
# Example for port_scan
port_scan("hello", [1, 2, 3]) # usage
Validates SSL certificate and provides platform-specific installation instructions if verification fails.
Example:
# Example for ssl_cert_install_help
ssl_cert_install_help("hello") # usage
Validates SSL certificate for host:port. Returns certificate information.
Example:
# Example for ssl_cert_validate
ssl_cert_validate("hello") # usage
Checks if TCP client handle is still connected.
Example:
# Example for tcp_available
tcp_available("hello") # usage
Creates TCP connection to host:port. Returns handle for subsequent operations.
Closes TCP connection and frees handle.
Performs TCP connect to host:port. Returns map with latency, success, and error fields.
Receives data from TCP connection. Returns map with content, available, and error fields.
Sends data over TCP connection.
Starts a TCP server on the given port. Mode can be 'blocking' or 'non_blocking'. Returns handle.
Accepts a new client connection on the TCP server. Returns map with client handle and address.
Stops the TCP server and closes all client connections.
Performs a TCP-based traceroute to host:port. Returns slice of hop info.
Performs traceroute to host. Protocol: 'icmp' or 'tcp'. For TCP, port is required. Returns slice of hop info.