domain with and without www

April 12, 2013 33.7k views
I've created two A records in DigitalOcean web DNS config it looks like this: @ XXX.XXX.XXX.XXX www.mysite.com XXX.XXX.XXX.XXX But only mysite.com (without www) is reacheable and i can ping it. nslookup also can't find www.mysite.com what should i do to enable www subdomain?
46 Answers
Another tech for this problem

hostname = www
ip address = xxx.xxx.xxx.xxx

will for me.
go to your dns control panel and add a new A record

hostname = www.mysite.com
ip adress = your droplet ip adres etc xxx.xxx.xxx.xxx

and be sure nameservers are configured for digitalocen at your domain control panel
Maybe using the CNAME will be better solution, especially for search engines?
"www mysite.com" or "www @"
thanks. solved it with cname: www @
Name Only valid hostname characters are allowed. (a-z, A-Z, 0-9, ., _ and -) Or a single record of '@'. and Data CNAMEs can not be pointed to IP address, only domain names
Got that error when trying to set a CNAME record with both:
www IP and www.example.com IP

I could only set an A record with www.example.com IP but still not working www.example.com.

I ran into this same issue and after combining a couple of the answers above, your DNS configuration for example.com should be (with CNAME solving the www. issue):

A --> @ --> IP ADDRESS
CNAME --> * --> example.com.
NS --> ns1.digitalocean.com.
NS --> ns2.digitalocean.com.
NS --> ns3.digitalocean.com.

For google its 2 terms... always use proper webmaster guidelines.

I ran into this same issue and after combining a couple of the answers above, your DNS configuration for example.com should be (with CNAME solving the www. issue):

A --> @ --> IP ADDRESS
CNAME --> * --> example.com.
NS --> ns1.digitalocean.com.
NS --> ns2.digitalocean.com.
NS --> ns3.digitalocean.com.

I am facing the same problem as you. I did everything in the tutorial and nothing seems to work. But I wait like an HOUR for this and then it works properly.

So this was my configuration, just as the tutorial in digitalocean here in the "CNAME" section

Enter Name: www

Enter Hostname: @

Hope it helps!!

PD: My droplet has this example name: example.com (or .net if your domain is .net, etc)

thanks to admin

<a href="www.mobilerepairingcoursedelhi.com/">best mobile repairing course in delhi</a>

This is the best informative information which I have ever seen. Keep up the good work and publish this kind of articles every day. Share these kinds of amazing posts every day. I was surfing around your webpage and found your blog very interesting and amazing. Keep sharing these posts.
http://www.whatsappstatusquotes.com/

We also faced the same problem at Rajma.org. What we did was added a page rule using Cloudflare to force non www version to www and it worked like a charm.

very useful post admin . please share this kind of this information.
https://www.jiotvforpcapkdownload.in/

Thanks to informe me the best information. Share these kinds of amazing posts every day. I was surfing around your webpage and found your blog very interesting and amazing. Keep sharing these post.[http://www.whatsappstatusquotes.com/good-morning-status-in-hindi-for-facebook-good-morning-status-download/

Thanks for sharing such a piece of great information with us. Your Post is very unique and all information is reliable for new readers. Keep it up in future, thanks for sharing such a useful post.
https://homesecuritydevices.us/kalender-mai-2019/
https://homesecuritydevices.us/calendario-mayo-2019/
https://homesecuritydevices.us/calendario-maio-2019/

Enjoy 350+ live TV channels on JioTV app for pc at your fingertips, including 30+ HD channels. Learn more about JioTV app here.

Game Guardian for ios is free for download and now you can hack apps and Android games by using PC and Windows

Q/A Our Core business is a Website Design Company, Digital Marketing, and E-commerce Website services. Website Design Company has been offering the best website designing and development services. Our company is a web solution provider company. Website Design Company define content broadly as 'the stuff in your Website.'
Our Core business is a Website Design Company, Digital Marketing, and E-commerce Website services. Website Design Company has been offering the best website designing and development services. Our company is a web solution provider company. Website Design Company define content broadly as 'the stuff in your Website.'

Have another answer? Share your knowledge.