github.com/looshlee/cilium@v1.6.12/test/provision/dns.sh (about)

     1  #!/bin/bash
     2  
     3  # This script update the dns servers to use google ones.
     4  set -e
     5  
     6  sudo systemctl disable systemd-resolved.service
     7  sudo service systemd-resolved stop
     8  
     9  echo "updating /etc/resolv.conf"
    10  
    11  cat <<EOF > /etc/resolv.conf
    12  nameserver 8.8.8.8
    13  nameserver 8.8.4.4
    14  EOF