mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-10 05:54:20 +00:00
rewrite loopback namservers to 8.8.8.8
This commit is contained in:
parent
8df82582c0
commit
a688bfaa0a
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ EOF
|
|||
extraRules1=""
|
||||
fi
|
||||
|
||||
readarray nameservers < <(grep ^nameserver /etc/resolv.conf | sed -r 's/^nameserver[[:space:]]+([0-9.a-fA-F]+).*/"\1"/')
|
||||
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/' )
|
||||
|
||||
if [[ "$eth0_name" = eth* ]]; then
|
||||
predictable_inames="usePredictableInterfaceNames = lib.mkForce false;"
|
||||
|
|
Loading…
Reference in a new issue