DNS Setup for my Domain and connecting Correct Directory /var/www/

Hi All,

I am new to DO . Getting used to it slowly. Droplet Specs: IPv6 enabled, Ubuntu 15.0.4 32Bit, LEMP, PhpMyAdmin installed using the tutorials here at DO.

Firstly, I have a domain at Godaddy. As i learnt that hosting my own mail server will be too hectic and is not recommended. So, i have decided to use the email service of godaddy itself.

Now, if i want to use the godaddy email service, then do i just have to point A records of my domain to DO now or i should even change the DNS.

If yes what should i input in A records at Domain DNS at godaddy and What should i input in A , AAAA records or any other records req at DNS on DO.

That is first part of the quest.

Secondly I have created this /var/www/ ( is the example domain for explanation)

now i want to point at godaddy to show content from the above directory.

Will the above asked A Records thing solve this itself, by pointing the A records , will the site load content from the above directory.

If yes, then its fine. If NO, can you help me what should i do for this ?

Please help.

Thanks Regards RVN

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’m not sure I followed that last part, but I’m thinking you meant to change the domain’s DNS to Digital Ocean’s? That’s fine too, no difference there, just insure the MX record is pointing to a separate A record that is the Godaddy mail server.

Ok then you’re going to want to have a separate record for that, otherwise it’ll point to your droplet for email. Whatever IP you’re using now for Godaddy should be what the MX record is pointing to.

In theory you want to make a separate A record for, and you can leave the MX information alone.

If doing this doesn’t work, you may want to just call up Godaddy and consult with them on it. Let them know you want to keep your email hosted there and that you just want to have your web publishing point to another IP. They have good support staff that are available 24/7 to answer things like that.