Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Edu4rdSHL/rusolver
A fast and accurate DNS resolver written in Rust.
https://github.com/Edu4rdSHL/rusolver
Last synced: 25 days ago
JSON representation
A fast and accurate DNS resolver written in Rust.
- Host: GitHub
- URL: https://github.com/Edu4rdSHL/rusolver
- Owner: Edu4rdSHL
- License: gpl-3.0
- Created: 2020-09-28T16:47:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T17:08:51.000Z (over 2 years ago)
- Last Synced: 2024-11-12T21:07:25.436Z (29 days ago)
- Language: Rust
- Homepage:
- Size: 663 KB
- Stars: 168
- Watchers: 9
- Forks: 24
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- WebHackersWeapons - rusolver
- awesome-hacking-lists - Edu4rdSHL/rusolver - A fast and accurate DNS resolver written in Rust. (Rust)
README
# Rusolver
Fast DNS resolver written in Rust. Works on Linux, Windows, macOS, Android, Aarch64, ARM and possibly in your oven.# Goal
Offer the community an efficient host resolution tool.# Performance, speed and accuracy
Rusolver is **very** resource friendly, you can use up to 1000 threads in an single core machine and this will work without any problem, the bottleneck for this tool is your network speed. By default, Rusolver is able to perform resolution for ~1532 hosts per second in good network conditions (tested in an AWS machine). Additionally the tool does a double-check by default for resolved hosts against Cloudflare, Google, Quad9, OpenDNS, Verisign, UncensoredDNS and dns.watch DNS, with that algoritm the possibility to get an false-positive is null.## Demo
The files used in the demo are [here](files/). `hosts.txt` is the list of hosts to perform resolution and the `resolved.txt` are the ones that Rusolver found as active.
[![asciicast](https://asciinema.org/a/362323.svg)](https://asciinema.org/a/362323)
# Installation
## Using precompiled binaries.
Download the asset from the [releases page](https://github.com/Edu4rdSHL/rusolver/releases/latest) according to your platform.
## Using the source code.
1. You need to have the latest stable [Rust](https://www.rust-lang.org/) version insalled in your system.
2. Clone the repo or download the source code, then run `cargo build --release`.
3. Execute the tool from `./target/release/rusolver` or add it to your system PATH to use from anywhere.Optionally you can just use `cargo install rusolver`
## Using the AUR packages. (Arch Linux)
`rusolver` can be installed from available [AUR packages](https://aur.archlinux.org/packages/?O=0&SeB=b&K=rusolver&outdated=&SB=n&SO=a&PP=50&do_Search=Go) using an [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers). For example,
```
yay -S rusolver
```If you prefer, you can clone the [AUR packages](https://aur.archlinux.org/packages/?O=0&SeB=b&K=rusolver&outdated=&SB=n&SO=a&PP=50&do_Search=Go) and then compile them with [makepkg](https://wiki.archlinux.org/index.php/Makepkg). For example,
```
git clone https://aur.archlinux.org/rusolver.git && cd rusolver && makepkg -si
```# Usage
* By default we only show the resolved hosts
```
cat hosts.txt | rusolver
```
* If you want to see the discovered IP addresses:
```
cat hosts.txt | rusolver -i
```
You can tune the `--timeout` and `-t/--threads` options according to your needs. See `rusolver --help`