Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom DNS #2825

Open
totoCZ opened this issue Dec 6, 2024 · 2 comments
Open

Support custom DNS #2825

totoCZ opened this issue Dec 6, 2024 · 2 comments

Comments

@totoCZ
Copy link

totoCZ commented Dec 6, 2024

Hi,

it would be nice to support custom DNS resolver.

My own network in Thailand is obviously censorship-free, but I can use ISP's censored DNS.

I don't want to run another Dnsmasq somehow in docker, etc.

I didn't see a way to specify custom DNS.

@Lanius-collaris
Copy link

See https://docs.docker.com/engine/network/#dns-services

Containers use the same DNS servers as the host by default, but you can override this with --dns

@Lanius-collaris
Copy link

Or you can apply this patch and run [email protected] with -O DNSOverUDPResolver='yourdns:53'

diff --git a/internal/experiment/webconnectivitylte/config.go b/internal/experiment/webconnectivitylte/config.go
index 85fb13a7..3e0af0e8 100644
--- a/internal/experiment/webconnectivitylte/config.go
+++ b/internal/experiment/webconnectivitylte/config.go
@@ -6,5 +6,5 @@ package webconnectivitylte
 
 // Config contains webconnectivity experiment configuration.
 type Config struct {
-	DNSOverUDPResolver string
+	DNSOverUDPResolver string `ooni:"DNS over UDP resolver"`
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants