Skip to content

Commit

Permalink
Testing rust, c++ vs python3.12 BUILD Bob Build (35)
Browse files Browse the repository at this point in the history
  • Loading branch information
spirillen committed Jan 18, 2025
1 parent 645e516 commit 128bc4e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/sort_lists_project/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ use reqwest::blocking::Client;
use reqwest::Proxy;
use webbrowser;

import dns.resolver

def dns_lookup(domain, resolver_address='9.9.9.10'):
resolver = dns.resolver.Resolver()
resolver.nameservers = [resolver_address]
try:
resolver.resolve(domain)
return True
except (dns.resolver.NXDOMAIN, dns.resolver.Timeout, dns.exception.DNSException) as e:
print(f"DNS lookup error for domain {domain}: {e}")
return False

fn find_files_by_name(directory: &str, filenames: &[&str]) -> Vec<String> {
let mut matches = Vec::new();
for entry in walkdir::WalkDir::new(directory) {
Expand Down

0 comments on commit 128bc4e

Please sign in to comment.