Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions prdoc/pr_9321.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: 'network/litep2p: Switch to system DNS resolver'
doc:
- audience: Node Dev
description: |-
Switch to system DNS resolver instead of 8.8.8.8 that litep2p uses by default. This enables full administrator control of what upstream DNS servers to use, including resolution of local names using custom DNS servers.

Fixes https://github.com/paritytech/polkadot-sdk/issues/9298.
crates:
- name: sc-network
bump: patch
3 changes: 3 additions & 0 deletions substrate/client/network/src/litep2p/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkBackend<B, H> for Litep2pNetworkBac
Some(crate::MAX_CONNECTIONS_ESTABLISHED_INCOMING as usize),
))
.with_keep_alive_timeout(network_config.idle_connection_timeout)
// Use system DNS resolver to enable intranet domain resolution and administrator
// control over DNS lookup.
.with_system_resolver()
.with_executor(executor);

if let Some(config) = maybe_mdns_config {
Expand Down
Loading