Temporary Failure in Name Resolution - Nginx

Temporary Failure in Name Resolution - Nginx

I have trying to fix my DNS on my Ubuntu server for the past couple days and have had no success following advice on all the other threads related to this issue. I've added the necessary ports, edited my resolv.conf file, and nothing seems to work.

dpk -l resolvconf:

resolved.conf file:

ufw status:

Nginx is up and running on my server. Any help would be greatly appreciated, thanks in advance!

2

1 Answer

You've made a critical error. You're trying to resolve DNS directly from your server without a DNS server to do recursive lookups on the server (resolved is just a 'forwarder' / stub - you still need to point it at an active DNS server, and you don't have one it seems on your system)

In your resolved.conf change your DNS= line to Google DNS (8.8.8.8) and then try again. This will let you resolve things again. DO NOT point your DNS at itself unless you install bind9 or some other type of DNS resolver that can recurse - you don't have that set up so you've fubar'd your ability to resolve any websites or domains.

5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.