#! /bin/bash -eu


# For fixing the following dns issue in k8s
# Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 127.0.0.1 1.1.1.1 1.1.1.1

# Update dns

sudo vim /etc/systemd/resolved.conf
sudo systemctl restart systemd-resolved

# Update ip

sudo vim /etc/netplan/01-netcfg.yaml
sudo netplan apply

# Check DNS servers
resolvectl status
