dns-ptr-resolver

Crates.iodns-ptr-resolver
lib.rsdns-ptr-resolver
version1.1.0
sourcesrc
created_at2023-08-11 11:32:12.752669
updated_at2023-08-11 19:55:10.013706
descriptionA program to resolve DNS IPs to PTRs
homepagehttps://github.com/wdes/dns-ptr-resolver#readme
repositoryhttps://github.com/wdes/dns-ptr-resolver
max_upload_size
id941822
size65,243
William Desportes (williamdes)

documentation

README

dns-ptr-resolver

A Rust program to resolve IP lists to their DNS PTR

It uses the following TCP DNS servers in a round-robin mode:

  • "1.1.1.1:53"
  • "1.0.0.1:53"
  • "8.8.8.8:53"
  • "8.8.4.4:53"

And 30 threads.

Example input

192.0.2.255
::1
1.1.1.1
1.0.0.1
2606:4700:4700::1111
2606:4700:4700::1001
8.8.8.8
8.8.4.4
9.9.9.9

Example output

1.0.0.1 # one.one.one.one.
::1
2606:4700:4700::1111 # one.one.one.one.
1.1.1.1 # one.one.one.one.
9.9.9.9 # dns9.quad9.net.
8.8.4.4 # dns.google.
2606:4700:4700::1001 # one.one.one.one.
8.8.8.8 # dns.google.
192.0.2.255

Rebuild example

cargo run --release ./example/ips-to-resolve.txt > ./example/ips-resolved.txt
Commit count: 10

cargo fmt