How to add a DNS record?

Knowledge Base > Migration > How to add a DNS record?

Adding a DNS (Domain Name System) record is a fundamental aspect of managing your website’s configuration. DNS records serve as the bridge between human-readable domain names and machine-readable IP addresses, ensuring proper routing of internet traffic. Whether you’re setting up a new website, configuring email services, or integrating third-party services, here’s a step-by-step guide on how to add a DNS record:

1. Identify Your DNS Hosting Provider:

  • Determine where your domain’s DNS records are hosted. Common DNS hosting providers include GoDaddy, Namecheap, Cloudflare, and others. Log in to the platform associated with your DNS provider.

2. Access DNS Management:

  • Navigate to the DNS management section. This is usually found in the dashboard or settings menu, labeled as “DNS Management,” “DNS Settings,” or a similar term.

3. Select Your Domain:

  • Identify the domain for which you want to add a DNS record. If you manage multiple domains, ensure you are working with the correct one.

4. Choose the Type of DNS Record:

  • Different purposes require different types of DNS records. Common types include A (Address), CNAME (Canonical Name), MX (Mail Exchange), TXT (Text), and more. Select the type that aligns with your specific needs.

5. Enter the Record Information:

  • Depending on the type of DNS record, you’ll need to enter specific information:
    • For A Record: Enter the IP address to which the domain or subdomain should point.
    • For CNAME Record: Provide the canonical name or alias for your domain.
    • For MX Record: Specify the mail server information for email delivery.
    • For TXT Record: Enter text information, commonly used for domain verification or SPF records for email authentication.

6. Set TTL (Time to Live):

  • Time to Live determines how long the DNS information is cached. You can usually leave this at the default setting or adjust it based on your preferences.

7. Save the Changes:

  • After entering the required information, save the changes. The process may involve clicking “Save,” “Update,” or a similar action, depending on your DNS hosting provider.

8. Verify the DNS Record:

  • To ensure that the DNS record has been added correctly, you can use online tools like DNS lookup or command-line tools like nslookup to check the record’s presence and content.

Additional Tips:

  • Propagation Time: DNS changes may take some time to propagate across the internet. While some changes can be nearly instant, it’s advisable to allow up to 48 hours for global propagation.
  • Error Checking: Carefully review the information entered to avoid errors. Incorrect entries can lead to misconfigurations and service disruptions.
  • Documentation: Keep a record of the DNS changes you make. Documentation helps in troubleshooting and managing your domain’s configuration over time.

Adding a DNS record is a routine but crucial task in managing your online presence. Whether you’re directing traffic, configuring email services, or implementing security measures, understanding how to add DNS records empowers you to control the functionality and performance of your website.

Common Questions

  • Why would I need to add a DNS record?

    Adding a DNS record is essential for various website management tasks, including directing traffic to your website (A record), setting up email services (MX record), creating subdomains (CNAME record), and implementing security measures like SPF or DKIM (TXT record).

  • How long does it take for a new DNS record to take effect?

    DNS changes, including adding a new DNS record, may take some time to propagate globally. While some changes can be nearly instant, it’s advisable to allow up to 48 hours for the changes to take full effect.

  • Can I add multiple DNS records for the same domain?

    Yes, you can add multiple DNS records for the same domain. Different types of records serve different purposes, such as directing web traffic, handling email services, or verifying domain ownership. Ensure that each record’s information is accurate and relevant to its specific use.

  • What is the difference between A and CNAME records?

    An A (Address) record points a domain or subdomain to an IPv4 address, while a CNAME (Canonical Name) record provides an alias or nickname for your domain, pointing it to another domain. A records are used for direct domain-to-IP mapping, while CNAME records are used for creating aliases.

  • Can I edit or remove a DNS record after adding it?

    Yes, you can edit or remove a DNS record after adding it. Access your DNS management dashboard, locate the specific record, and make the necessary changes. Keep in mind that DNS changes may take some time to propagate, and changes to existing records should be approached with caution to avoid service disruptions.

  • Are there specific considerations for adding MX records for email services?

    Yes, when adding MX (Mail Exchange) records for email services, you need to specify the mail server information. Ensure that you correctly set the priority levels for each mail server, indicating the order in which they should be used. This is crucial for proper email delivery.