3 stable releases
1.2.0 | Jun 22, 2024 |
---|---|
1.1.0 | Aug 11, 2023 |
1.0.0 | Aug 11, 2023 |
#1320 in Command line utilities
21KB
262 lines
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.
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
Dependencies
~15–26MB
~381K SLoC