kubernetes-the-hard-way/vagrant/ubuntu/update-dns.sh

5 lines
106 B
Bash

#!/bin/bash
sed -i -e 's/#DNS=/DNS=8.8.8.8/' /etc/systemd/resolved.conf
service systemd-resolved restart