An open API service indexing awesome lists of open source software.

https://github.com/tony-go/ip-resolver

Dns resolver written in Rust.
https://github.com/tony-go/ip-resolver

Last synced: 3 months ago
JSON representation

Dns resolver written in Rust.

Awesome Lists containing this project

README

        

# ip-resolver

Basic DNS resolver written in the context of _"Rust In Action"_ book.

It could output one or more addresses. Default DNS server is "1.1.1.1" (Cloudfare), but you can pass a different one with an option.

![](demo.gif)

## Usage

```bash
cargo run -q --
```

| Args | Required| Default value |
| ----------- | --------| ------------- |
| `domain` | ✅ | x |
| `dns-server`| ❌ | "1.1.1.1" |

## Example

```bash
cargo run -q -- www.tonygo.dev
```

It should output something like:

```bash
$ 18.192.76.182
$ 34.141.103.251
```