sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' sudo bash -c 'echo "nameserver 8.8.4.4" >> /etc/resolv.conf' sudo bash -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf' sudo bash -c 'echo "nameserver 1.0.0.1" >> /etc/resolv.conf'