Due to #21900 (moved), we need to explicitly specify ServerDNSResolvConfFile /dev/null for chutney to work on macOS when the network is unavailable.
We should also set ServerDNSDetectHijacking 0.
This should be the default, because:
users who run chutney might not want it using DNS in a detectable pattern, and
it makes chutney more reliable, because it no longer depends on a working DNS.
Some users will want chutney to be able to use hostnames, so we should add a tools/test-network.sh option and environmental variable to re-enable the default ServerDNSResolvConfFile setting (or, even better, use a custom ServerDNSResolvConfFile).
There seems to be no reason to turn on ServerDNSDetectHijacking: some users might be using chutney with internal DNS names.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
That commit seems plausible, though I do wonder why we're making DNS broken-by-default. Would it be better instead to have DNS work by default for chutney started from a command line, and have it disabled specifically when running tests that won't use it? (I'll believe either answer)
That commit seems plausible, though I do wonder why we're making DNS broken-by-default. Would it be better instead to have DNS work by default for chutney started from a command line, and have it disabled specifically when running tests that won't use it? (I'll believe either answer)
I want DNS to work by default in chutney, and I want offline use to work even on macOS (and other OSs that have no resolv.conf).
I think a good way to fix this is to do the thing that will work once #21900 (moved) is fixed in tor.
So we should make working DNS the default, and have an --offline option.
(Or, even better, we could check if the ServerDNSResolvConfFile exists, and if it doesn't, we should apply a workaround, which can be switched off.)
If the default ServerDNSResolvConfFile is missing, or is a symlink with a missing target (thanks, Apple!), chutney applies a workaround ServerDNSResolvConfFile /dev/null
An environmental variable can be used to set ServerDNSResolvConfFile
This can be used to implement --offline: CHUTNEY_DNS_CONF=/dev/null
This can be used to implement --dns-conf=X: CHUTNEY_DNS_CONF=X
An environmental variable can be used to not set ServerDNSResolvConfFile
This can be used to implement --dns-conf-default: CHUTNEY_DNS_CONF=""
To fix the crash on SETCONF in #21900 (moved), the user needs to supply a DNS conf with at least one nameserver.
To provide a conf that simultaneously:
works offline: CHUTNEY_DNS_CONF=/path/to/empty/or/working/conf
and doesn't crash on SETCONF: CHUTNEY_DNS_CONF=/path/to/conf/with/a/dns/server
The user must supply a local DNS server that gives the right answers to tor (#19573 (moved)).
Or we can fix #21900 (moved), and just say /dev/null.
(We should document this in the chutney README.)
In #21989 (moved), arma suggests chutney uses ServerDNSDetectHijacking 0. That might solve some of these issues, but it certainly won't solve the eventdns breakage.
If the default ServerDNSResolvConfFile is missing, or is a symlink with a missing target (thanks, Apple!), chutney applies a workaround ServerDNSResolvConfFile /dev/null
An environmental variable can be used to set ServerDNSResolvConfFile
This can be used to implement --offline: CHUTNEY_DNS_CONF=/dev/null
This can be used to implement --dns-conf=X: CHUTNEY_DNS_CONF=X
An environmental variable can be used to not set ServerDNSResolvConfFile
This can be used to implement --dns-conf-default: CHUTNEY_DNS_CONF=""
This is implemented.
To fix the crash on SETCONF in #21900 (moved), the user needs to supply a DNS conf with at least one nameserver.
This is documented, and a local resolv.conf is provided by chutney.
To provide a conf that simultaneously:
works offline: CHUTNEY_DNS_CONF=/path/to/empty/or/working/conf
and doesn't crash on SETCONF: CHUTNEY_DNS_CONF=/path/to/conf/with/a/dns/server
The user must supply a local DNS server that gives the right answers to tor (#19573 (moved)).
Or we can fix #21900 (moved), and just say /dev/null.
(We should document this in the chutney README.)
This is documented, but providing the right DNS answers is out of scope for chutney.
Trac: Status: needs_revision to closed Resolution: N/Ato fixed