Skip to content

1ort/resoy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resoy

out Resoy is a small command-line tool for performing DNS queries. It allows you to resolve domain names and retrieve various DNS record types.

Installation

To install Resoy, you need to have Rust and Cargo installed. Just type:

cargo install --git https://github.com/1ort/resoy.git

Usage

# Basic Usage
resoy example.com

# Query Multiple Record Types
resoy example.com A AAAA NS CNAME

# Specify a Custom DNS Server
resoy --server 8.8.8.8:53 example.com A AAAA

# Disable ANSI-colored output
resoy --no-ansi example.com

# Display TTL in seconds without formatting
resoy --seconds example.com

# Use TCP connection instead of UDP
resoy --connection tcp example.com

Options

  • -s, --server <SERVER>: Specify the DNS server to use (default: 1.1.1.1:53).
  • --no-ansi: Disable ANSI-colored output.
  • --seconds: Display TTL in seconds without formatting.
  • -c, --connection <CONNECTION>: Specify the connection type (default: udp, possible values: udp, tcp).
  • -h, --help: Print the help message.
  • -V, --version: Print the version of Resoy.

Example

❯ resoy example.com A AAAA NS
 AAAA example.com.       44m13s 2606:2800:21f:cb07:6820:80da:af6b:8b2c
    A example.com.       38m35s 93.184.215.14
   NS example.com.    22h20m11s a.iana-servers.net.
   NS example.com.    22h20m11s b.iana-servers.net.