kswahl1
By:
kswahl1

Godaddy A record to digitalocean I.P. address

February 11, 2017 188 views
DNS Ubuntu 16.04

Once I point my GoDaddy A record to my I.P. address on my server, what changes do I have to make to my server? GoDaddy handles my mail, so I cant change the Nameserver. I've got multiple sites on my DO server. Would I need to change my host files? What records/files on the DO end do I need to make?

1 Answer

Pointing A record to a Droplet IP is enough as of DNS settings.
As you're not using DigitalOcean nameservers, you're not required to do any DNS config in DigitalOcean Cloud Control Panel.

If you want to host multiple sites, on server side, you need to configure VirtualHosts in case you use Apache, or Server Blocks in case you use Nginx for appropriate domain(s).
Following tutorial should help you to do so:
Apache - How To Set Up Apache Virtual Hosts on Ubuntu 16.04.
Nginx - How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04.

The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.
Have another answer? Share your knowledge.