ERR_NAME_NOT_RESOLVED On NGINX
Hi I’m trying to connect to my website and I got this following error in Chrome: ERR_NAME_NOT_RESOLVED
I have run nginx -t as well as tail /var/log/nginx/error.log with no luck.
DNS OUTPUT from https://network-tools.com/nslookup:
Name TTL Until Refresh Class Type Data
loveofportugal.com. 3492 IN A 104.248.243.249
loveofportugal.com. 1691 IN NS ns1.digitalocean.com.
loveofportugal.com. 1691 IN NS ns2.digitalocean.com.
loveofportugal.com. 1691 IN NS ns3.digitalocean.com.
loveofportugal.com. 1692 IN SOA ns1.digitalocean.com. hostmaster.loveofportugal.com. 1574866016 10800 3600 604800 1800
NGINX Sites-enabled file:
server {
listen 127.0.0.1;
root /var/www/loveofportugal.com/public;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
server_name loveofportugal.com www.loveofportugal.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
I use GoDaddy as Domain hoster. All of the nameservers are pointing to digitalocean.