dns-ptr-resolver

Crates.iodns-ptr-resolver
lib.rsdns-ptr-resolver
version1.2.0
sourcesrc
created_at2023-08-11 11:32:12.752669
updated_at2024-06-22 17:09:57.796
descriptionA program to resolve DNS IPs to PTRs
homepagehttps://github.com/wdes/dns-ptr-resolver/tree/v1.2.0-dev#readme
repositoryhttps://github.com/wdes/dns-ptr-resolver
max_upload_size
id941822
size70,888
William Desportes (williamdes)

documentation

README

dns-ptr-resolver

dependency status crates.io Build and test rust code

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.

Install

cargo install dns-ptr-resolver

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

dns-ptr-resolver ./example/ips-to-resolve.txt 1> ./example/ips-resolved.txt
Commit count: 27

cargo fmt