Skip to content

Commit 8c868e5

Browse files
committed
Testing rust, c++ vs python3.12 BUILD Bob Build (36)
1 parent 128bc4e commit 8c868e5

File tree

1 file changed

+0
-12
lines changed
  • tools/sort_lists_project/src

1 file changed

+0
-12
lines changed

tools/sort_lists_project/src/main.rs

-12
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,6 @@ use reqwest::blocking::Client;
88
use reqwest::Proxy;
99
use webbrowser;
1010

11-
import dns.resolver
12-
13-
def dns_lookup(domain, resolver_address='9.9.9.10'):
14-
resolver = dns.resolver.Resolver()
15-
resolver.nameservers = [resolver_address]
16-
try:
17-
resolver.resolve(domain)
18-
return True
19-
except (dns.resolver.NXDOMAIN, dns.resolver.Timeout, dns.exception.DNSException) as e:
20-
print(f"DNS lookup error for domain {domain}: {e}")
21-
return False
22-
2311
fn find_files_by_name(directory: &str, filenames: &[&str]) -> Vec<String> {
2412
let mut matches = Vec::new();
2513
for entry in walkdir::WalkDir::new(directory) {

0 commit comments

Comments
 (0)