Report this

What is the reason for this report?

domain.com can be resolved, but www.domain.com can not be resolved..

Posted on August 27, 2014

domain.com works fine, but www.domain.com can not be resolved. how can I solve the problem by setting the DNS (DigitalOcean) and apache webserver, respectively



This textbox defaults to using Markdown to format your 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.

Does your DNS contains www.domain.com?

DNS only contains only domain.com like below. must add www.domain.com at DNS setting?

domain.com

A @ 128.199.xxx.xxx CNAME www. @ NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM.

Zone File

$TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.domain.com. ( 1409133962 ; last update: 2014-08-27 10:06:02 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 128.199.xxx.xxx www. CNAME @

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.