AWS DNS Fix for Enhance

Modified on Fri, 27 Nov at 2:04 PM

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article