July 15, 2018 3.2k views
Nginx DNS Ubuntu 16.04


I had this working fine before, but then I tried to get HTTPS working. I obtained a valid certificate, but It wouldn’t load, so I removed the HTTPS settings in the Nginx file to try and just get the site to load again. My website is and I am receiving a ERRNAMENOT_RESOLVED when I attempt to visit the site. The Nginx file reboots with an OK

DNS settings on DO:

A Copy   directs to Copy    
3600 Copy
A Copy   directs to Copy    
3600 Copy   

Here is the Nginx file that loads fine.

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /srv/www/;
        index index.html index.htm;

        # Make site accessible from http://localhost/ 

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
                # Uncomment to enable naxsi on this location

1 comment
3 Answers
3166 July 15, 2018
Accepted Answer

I solved it, the problem was my own DNS server at my home. I changed it to google dns server in IP4 Properties (,

He looks like its a browser cache issue, because on my laptop is does not work and on my Iphone off WIFI it works…

The following are the solutions to this error. You can try them one by one and see if they are helpful.

1) Clear browser cookies

2) Flush and renew DNS

3) Change DNS address to Google Public DNS

4) Check your Firewall and Security Software

5) Power cycle your router

Chase Credit Card Login

Have another answer? Share your knowledge.