DNS issues on new droplet (Using www does not work)

  • Posted July 12, 2013


I just created my first Droplet and changed my DNS to DigitalOcean. I’ve reviewed the following forum thread (, but I’m still having issues - my domain works without the www, but not with. I’ve also checked the vhosts configuration and it looks ok. (This is the same vhost configuration file I was running on a Linode server also using Fedora)

Any help is appreciated.


whois shows I’m using the right DNS server, so I know it’s propogated.

Running dig shows the same thing:


; <<>> DiG 9.8.3-P1 <<>> ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24519 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available



;; Query time: 47 msec ;; SERVER: ;; WHEN: Fri Jul 12 07:18:25 2013 ;; MSG SIZE rcvd: 48

Droplet DNS setup: 2013-07-12 07.16.59.png

vhost configuration:

NameVirtualHost *:80

<VirtualHost *:80> ServerAdmin ServerName ServerAlias * DocumentRoot /var/www/ ErrorLog /var/www/ CustomLog /var/www/ combined </VirtualHost>

I’ve also tried using:

NameVirtualHost *:80

<VirtualHost *:80> ServerAdmin ServerName ServerAlias DocumentRoot /var/www/ ErrorLog /var/www/ CustomLog /var/www/ combined </VirtualHost>

Starting Apache with -S does not have any errors, so I don’t think it is the vhost configuration.

This thread ( makes me think DNS is not configured for www properly, but I’m not having much luck finding any answers on Google.

Any hints or tips are appreciated!




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.

@mureta: I believe you created a support ticket about this. Let’s discuss it there.

Doesnt work for me.

Paul, <br> <br>I know you have already found an answer, but you can also create a CNAME to your @ A record if they are the same IP. This adds a bit of simplicity to your zone file and makes it easier to update the IP of both records if you ever need to update it.

I got some help in IRC - it turns out I needed to create an A record for www in the Droplet DNS panel. <br> <br>Thanks!