My domain is with GoDaddy and im aware they have an issue with CNAME entries including @.
IS there a way i can resolve this issue?
What im trying to achieve is having the domain CNAME entries point to my DDNS so if ever i change my ip for whatever reason i curl back there to update it.
Now the problem i always had this. when i go to www.domain.ca it works just fine. but when i put in domain.ca in incognito or try to ping it it cant resolve saying it cant find the ip/hostname.
I have 2 entries for CNAME and no A record. one with * and www pointing to the same DDNS. Is this the correct way to put in a wildcard?
My settings in nginx are as follows.
server {
listen 80;
listen 443 ssl default_server;
listen [::]:443 ssl default_server ;
root /home/web/wordpress/;
index index.php;
server_name LANIP domain.ca www.domain.ca DDNS.ddns.net;
ssl_certificate /etc/letsencrypt/live/www.domain.ca/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.domain.ca/privkey.pem;
access_log /home/web/wordpress/access.log;
error_log /home/web/wordpress/error.log notice;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}
Let me know what am i doing wrong.