If you have recently purchased a domain and hosting, you can use this guide to learn how to set up the basic DNS records you will need to manage your website’s DNS.
Common DNS Records
CNAME – A CNAME is a special type of DNS record used to create an alias from one hostname to another. For example, if we say “www.yourdomain.com is a CNAME to yourdomain.com” that means that someone accessing www.yourdomain.com will be pointed to the same IP address that yourdomain.com points to. This is useful so that when your IP address changes, you only have to update yourdomain.com’s entry, and www.yourdomain.com automatically points to the right place.
MX – A Mail eXchanger is a type of DNS record that allows you to control the delivery of mail for a given domain or subdomain. In our context, MX records can be set on a host-by-host basis to point to other hosts on the Internet (usually with permanent connections) that are set up to accept and/or route mail for your hostname(s). Setting a backup MX makes the entry you specify a secondary mail exchanger. This means that delivery will be attempted to your host first, and then to the backup host you specify if that fails.
Setting Up an A Record for Your Server
If you are hosting your own server or have a cloud server, you will need an A record pointed at the server’s IP address.
Setting Up A CNAME Record
Many hosting providers, like Squarespace or GoDaddy, do not provide a static IP address for your website. Instead, you will be provided information to create CNAME records that will direct users to your website via your domain.
Setting Up Your Domain’s Email Address Using Gmail
If you are setting up your domain’s email address using Gmail, you must add several records to validate your domain’s email address with Gmail.
Setting Up Your Domain’s Email Address Using Office 365
If you are setting up your domain’s email address using Office 365, you will need to add several records to validate your domain’s email address with Microsoft. Reference Microsoft’s documentation to see how this is done.