Skip to content

Commit

Permalink
use as Quad9's and Cloudflare's servers as default DNS servers
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed May 23, 2024
1 parent c28cb48 commit ce02b22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/executor/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ impl<'a> NetworkInterface<'a> {

#[cfg(feature = "dns")]
let dns_handle = {
// use Google's DNS servers
let servers = &[
Ipv4Address::new(8, 8, 4, 4).into(),
Ipv4Address::new(8, 8, 8, 8).into(),
// Quad9 DNS server
Ipv4Address::new(9, 9, 9, 9).into(),
// Cloudflare DNS server
Ipv4Address::new(1, 1, 1, 1).into(),
];
let dns_socket = dns::Socket::new(servers, vec![]);
sockets.add(dns_socket)
Expand Down

0 comments on commit ce02b22

Please sign in to comment.