From 7520ea8c548ad53e99e74e395ae21cee5d207ce3 Mon Sep 17 00:00:00 2001 From: ThomasKaiser Date: Mon, 28 May 2018 14:01:05 -0700 Subject: [PATCH] Use Cloudflare DNS server for privacy reasons --- lib/chroot-buildpackages.sh | 2 +- lib/debootstrap-ng.sh | 2 +- lib/distributions.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/chroot-buildpackages.sh b/lib/chroot-buildpackages.sh index 5857d32f01..d64aed5ec3 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 "8.8.8.8" > $target_dir/etc/resolv.conf + echo "1.1.1.1" > $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 fb3fc60d7b..cc059b94a1 100644 --- a/lib/debootstrap-ng.sh +++ b/lib/debootstrap-ng.sh @@ -218,7 +218,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 8.8.8.8' >> $SDCARD/etc/resolv.conf + echo 'nameserver 1.1.1.1' >> $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 e45e196e21..31eaa01fde 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -192,7 +192,7 @@ install_common() # DNS fix. package resolvconf is not available everywhere if [ -d /etc/resolvconf/resolv.conf.d ]; then - echo 'nameserver 8.8.8.8' > $SDCARD/etc/resolvconf/resolv.conf.d/head + echo 'nameserver 1.1.1.1' > $SDCARD/etc/resolvconf/resolv.conf.d/head fi # premit root login via SSH for the first boot