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.
- Host: GitHub
- URL: https://github.com/tony-go/ip-resolver
- Owner: tony-go
- Created: 2022-09-18T14:55:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-18T15:10:42.000Z (almost 3 years ago)
- Last Synced: 2025-02-04T16:18:26.605Z (5 months ago)
- Language: Rust
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

## 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
```