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

     1  #!/usr/bin/env bash
     2  
     3  # This script update the dns servers to use google ones.
     4  set -e
     5  
     6  sudo systemctl disable systemd-resolved.service || true
     7  sudo service systemd-resolved stop || true
     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