Confirm your upstream VPC DNS IP
grep nameserver /run/systemd/resolve/resolv.conf
Disable DNSStubListener and restart systemd-resolved
sudo sed -i 's/^#DNSStubListener=yes/DNSStubListener=no/' /etc/systemd/resolved.conf sudo systemctl restart systemd-resolved
Replace the /etc/resolv.conf symlink with a static file
sudo rm -f /etc/resolv.conf printf "nameserver 172.30.0.2\nnameserver 169.254.169.253\n" | sudo tee /etc/resolv.conf
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article