Question

domain with and without www

  • Posted on April 12, 2013
  • scasicAsked by scasic

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?

Show comments

Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
November 4, 2020
Pinned Answer

Hello All,

Since this is a pretty big question, I’ll write an answer that covers all topics in the answer section.

DNS with DigitalOcean

Adding a domain you own to your DigitalOcean account lets you manage the domain’s DNS records with the control panel and API.

To set up a domain with DigitalOcean, you need to add it (and any of its existing DNS records) to the control panel. In order for those DNS settings to be picked up, you need to have DigitalOcean’s Nameservers configured on the Domain

ns1.digitalocean.com
ns2.digitalocean.com

To edit your Domain’s Nameservers, you need to access your account with your registrar. Basically, where you Domain was bought from. In there change the Nameservers of the domain to the ones mentioned. Once you do, all records you’ve added in your DigitalOcean’s account for that domain will start working.

Please note that, DNS propagation can take up to 48 hours in certain places so be patient.

This comment has been deleted

    Another tech for this problem <br> <br>hostname = www <br>ip address = xxx.xxx.xxx.xxx <br> <br>will for me.

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Become a contributor for community

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    DigitalOcean Documentation

    Full documentation for every DigitalOcean product.

    Resources for startups and SMBs

    The Wave has everything you need to know about building a business, from raising funding to marketing your product.

    Get our newsletter

    Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

    New accounts only. By submitting your email you agree to our Privacy Policy

    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.