Merge pull request 'changes to quad9 upstream resolvers' (#1) from sova/change-upstream-resolvers-to-quad9 into master

Reviewed-on: https://git.selfprivacy.org/sova/selfprivacy-nixos-infect/pulls/1
This commit is contained in:
sоvд 2022-12-14 23:13:07 +02:00
commit e05d7a6aa4

View file

@ -135,8 +135,8 @@ EOF
readarray nameservers < <(grep ^nameserver /etc/resolv.conf | sed -r \
-e 's/^nameserver[[:space:]]+([0-9.a-fA-F:]+).*/"\1"/' \
-e 's/127[0-9.]+/8.8.8.8/' \
-e 's/::1/8.8.8.8/' )
-e 's/127[0-9.]+/9.9.9.9/' \
-e 's/::1/9.9.9.9/' )
if [[ "$eth0_name" = eth* ]]; then
predictable_inames="usePredictableInterfaceNames = lib.mkForce false;"