mersinvald / batch_resolve Goto Github PK
View Code? Open in Web Editor NEWFast asynchronous DNS batch resolver
License: MIT License
Fast asynchronous DNS batch resolver
License: MIT License
Split tasks into chunks and resolve in different event loops
It would be great to use batch resolve as a module in our code vs using it as a command line tool. Any pointers on how to accomplish it would be great.
thanks
Describe the solution you'd like
Great tool, tried it once and fell in ❤❤. However it would be great to write the resolved hosts/domains to a separate file or append to the output. eg
172.217.0.238,music.google.com
172.217.164.238,google.com
31.13.65.36,facebook.com
Store each DNS as a future, so it could track requests/second (roughly, by poll() times).
Make timeouts with NotReady
Hi there,
Thanks for building such a great tool. Would love to get MX record along with other DNS records.
Thanks
Partial output:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Mutex { data: ["5.45.67.195", "194.28.173.2", "178.62.198.162", "217.12.201.189", "104.27.163.118", "104.27.162.118", "188.166.52.65", "203.133.19.1", "203.133.19.1", "91.201.203.139", "104.27.154.15", "104.27.155.15", "203.133.19.1", "178.238.225.116", "185.53.179.40", "178.62.235.28", "178.238.225.116", "178.62.198.162", "185.43.220.39", "178.62.235.28", "104.27.185.35", "104.27.184.35", "178.62.235.28", "178.62.235.28", "148.251.251.130", "185.43.222.72", "185.43.222.73", "178.238.225.116", "191.96.249.28", "37.1.200.49", "185.25.51.247", "178.62.235.28", "5.45.73.153", "178.62.198.162", "178.62.198.162", "178.62.198.162", "104.24.101.34", "104.24.100.34", "178.238.225.116", "203.133.19.1", "178.62.198.162", "178.238.225.116", "178.238.225.116", "182.50.149.1", "185.164.172.59", "185.11.240.196", "203.133.19.1", "178.62.198.162", "88.150.186.221", "178.62.198.162", "178.62.198.162", "203.133.19.1", "5.45.86.116", "188.42.196.50", "5.8.88.183", "178.62.235.28", "178.62.198.162", "195.245.112.103", "46.183.150.38", "178.238.225.116", "104.24.126.65", "104.24.127.65", "178.62.235.28", "185.164.172.68", "5.152.213.165", "188.42.196.57", "200.124.130.232", "178.62.235.28", "178.62.198.162", "178.62.198.162", "178.62.235.28", "160.153.128.40", "178.62.198.162", "178.62.198.162", "184.168.221.34", "5.45.78.134", "104.31.91.157", "104.31.90.157", "178.62.198.162", "178.62.198.162", "178.238.225.116", "178.238.225.116", "209.99.40.222", "178.62.198.162", "178.62.198.162", "178.238.225.116", "178.62.235.28", "178.62.235.28", "178.238.225.116", "178.62.198.162", "178.62.198.162", "178.62.235.28", "176.9.139.186", "178.62.198.162", "178.62.198.162", "199.195.194.196", "178.62.198.162", "184.168.221.74", "188.227.168.156", "88.150.186.221", "188.227.168.156", "178.62.235.28", "166.62.6.47", "178.62.198.162", "204.11.56.48", "178.62.198.162", "178.238.225.116", "178.62.198.162", "178.62.198.162", "88.150.186.221", "194.28.173.2", "178.62.198.162", "178.238.225.116", "178.62.235.28", "178.62.235.28", "178.238.225.116", "91.215.155.109", "178.62.235.28", "178.238.225.116", "88.150.186.221", "178.62.198.162", "178.62.198.162", "178.238.225.116", "72.52.4.121", "178.62.198.162", "88.150.186.221", "178.238.225.116", "178.62.198.162", "5.152.213.165", "178.62.198.162", "178.62.198.162", "104.31.66.56", "104.31.67.56", "148.251.251.130", "178.238.225.116", "178.62.198.162", "178.62.235.28", "178.238.225.116", "150.60.157.6", "94.242.237.24", "178.62.198.162", "178.238.225.116", "104.27.173.184", "104.27.172.184", "88.150.186.221", "178.238.225.116", "178.62.198.162", "148.251.251.130", "88.150.186.221", "178.62.198.162", "178.62.235.28", "91.210.165.240", "178.238.225.116", "91.217.91.127", "178.62.198.162", "178.62.198.162", "204.11.56.48", "178.62.198.162", "178.238.225.116", "204.11.56.48", "178.62.198.162", "178.62.198.162", "88.150.186.221", "74.208.236.245", "176.9.139.186", "194.54.88.209", "178.238.225.116", "50.101.125.134", "178.62.235.28", "185.164.172.47", "91.230.121.110", "31.222.148.124", "178.62.235.28", "176.9.139.186", "178.62.198.162", "178.238.225.116", "104.31.76.97", "104.31.77.97", "104.31.85.34", "104.31.84.34", "178.62.198.162", "178.62.235.28", "104.18.45.161", "104.18.44.161", "178.62.198.162", "89.107.59.230", "178.238.225.116", "195.22.26.248", "74.125.205.197", "63.249.137.177", "50.101.125.134", "184.168.221.41", "5.8.88.183", "203.133.19.1", "203.133.19.1"] }', /checkout/src/libcore/result.rs:859
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at /checkout/src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at /checkout/src/libstd/sys_common/backtrace.rs:60
at /checkout/src/libstd/panicking.rs:355
3: std::panicking::default_hook
at /checkout/src/libstd/panicking.rs:371
4: std::panicking::rust_panic_with_hook
at /checkout/src/libstd/panicking.rs:549
5: std::panicking::begin_panic
at /checkout/src/libstd/panicking.rs:511
6: std::panicking::begin_panic_fmt
at /checkout/src/libstd/panicking.rs:495
7: rust_begin_unwind
at /checkout/src/libstd/panicking.rs:471
8: core::panicking::panic_fmt
at /checkout/src/libcore/panicking.rs:69
9: core::result::unwrap_failed
at /checkout/src/libcore/macros.rs:29
10: <core::result::Result<T, E>>::unwrap
at /checkout/src/libcore/result.rs:737
11: batch_resolve::ResolveState::unwrap
at src/main.rs:174
12: batch_resolve::main
at src/main.rs:236
13: __rust_maybe_catch_panic
at /checkout/src/libpanic_unwind/lib.rs:98
14: std::rt::lang_start
at /checkout/src/libstd/panicking.rs:433
at /checkout/src/libstd/panic.rs:361
at /checkout/src/libstd/rt.rs:57
15: main
16: __libc_start_main
17: _start
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.