www prefix not resolving, Nginx config correct

  • Posted September 21, 2014

I am new to zone business stuff. I have which resolves to my droplet IP and the website loads. However, when I use prefix, DNS does not resolve.

I added CNAME record for which points to but it still does not work. When I execute dig on I get NOERROR, but dig returns status: NXDOMAIN.

I am pretty certain my nginx configuration is good. How do I get the www prefix to work?


It’s all good now. I didn’t wait long enough for the new information to propagate.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Correct Syntax for Cname is :	86400	IN	CNAME	.

note the dot in the end

My zone file:

$TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. ( 1411275820 ; last update: 2014-09-21 05:03:40 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 162.nnn.nn.nn CNAME