From 961254b4f167fe32c1e9280562dfa9a875bf7ffc Mon Sep 17 00:00:00 2001 From: JMCC Date: Wed, 2 Jan 2019 18:48:39 +0100 Subject: [PATCH] Change Cloudflare DNS for Google's --- lib/chroot-buildpackages.sh | 2 +- lib/debootstrap-ng.sh | 2 +- lib/distributions.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/chroot-buildpackages.sh b/lib/chroot-buildpackages.sh index d64aed5ec3..5857d32f01 100644 --- a/lib/chroot-buildpackages.sh +++ b/lib/chroot-buildpackages.sh @@ -59,7 +59,7 @@ create_chroot() printf '#!/bin/sh\nexit 101' > $target_dir/usr/sbin/policy-rc.d chmod 755 $target_dir/usr/sbin/policy-rc.d rm $target_dir/etc/resolv.conf 2>/dev/null - echo "1.1.1.1" > $target_dir/etc/resolv.conf + echo "8.8.8.8" > $target_dir/etc/resolv.conf rm $target_dir/etc/hosts 2>/dev/null echo "127.0.0.1 localhost" > $target_dir/etc/hosts mkdir -p $target_dir/root/{build,overlay,sources} $target_dir/selinux diff --git a/lib/debootstrap-ng.sh b/lib/debootstrap-ng.sh index 68f184e5c4..0e6d3995a4 100644 --- a/lib/debootstrap-ng.sh +++ b/lib/debootstrap-ng.sh @@ -224,7 +224,7 @@ create_rootfs_cache() # this is needed for the build process later since resolvconf generated file in /run is not saved rm $SDCARD/etc/resolv.conf - echo 'nameserver 1.1.1.1' >> $SDCARD/etc/resolv.conf + echo 'nameserver 8.8.8.8' >> $SDCARD/etc/resolv.conf # stage: make rootfs cache archive display_alert "Ending debootstrap process and preparing cache" "$RELEASE" "info" diff --git a/lib/distributions.sh b/lib/distributions.sh index 83b36f824c..30abae6e65 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -259,7 +259,7 @@ install_common() # DNS fix. package resolvconf is not available everywhere if [ -d /etc/resolvconf/resolv.conf.d ]; then - echo 'nameserver 1.1.1.1' > $SDCARD/etc/resolvconf/resolv.conf.d/head + echo 'nameserver 8.8.8.8' > $SDCARD/etc/resolvconf/resolv.conf.d/head fi # premit root login via SSH for the first boot @@ -361,7 +361,7 @@ install_distribution_specific() renderer: NetworkManager EOF # DNS fix - sed -i "s/#DNS=.*/DNS=1.1.1.1/g" $SDCARD/etc/systemd/resolved.conf + sed -i "s/#DNS=.*/DNS=8.8.8.8/g" $SDCARD/etc/systemd/resolved.conf # Journal service adjustements sed -i "s/#Storage=.*/Storage=volatile/g" $SDCARD/etc/systemd/journald.conf sed -i "s/#Compress=.*/Compress=yes/g" $SDCARD/etc/systemd/journald.conf