nixos/dnscrypt-proxy: support updating before nss is up
Resolve download.dnscrypt.org using hostip with a bootstrap resolver (hard-coded to Google Public DNS for now), to ensure that we can get an up-to-date resolver list without working name service lookups. This makes us more robust to the upstream resolver list getting out of date and other DNS configuration problems. We use the curl --resolver switch to allow https cert validation (we'd need to do --insecure if using just the ip addr). Note that we don't rely on https for security but it's nice to have it ...
parent
adf044e1
Please register or sign in to comment