Posted July 15, 2018 10.7k views
NginxDNSUbuntu 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

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