An A record (address record) points your hostname or domain to a specific IP address, allowing visitors to find your website on the internet. Adding an A record is a simple process that connects your domain name to your server's IP address through DNS zone configuration.
What Is an A Record?
An A record is a fundamental component of your DNS zone files. It creates a direct mapping between a hostname (like www.example.com) and an IPv4 address (like 192.0.2.1). When someone types your domain into their browser, the A record tells their computer exactly which server to connect to.
Without a properly configured A record, your domain won't resolve to your website, and visitors will see error messages instead of your content.
Prerequisites: Create a DNS Zone First
Before adding an A record, you should first create a parent DNS zone for your domain. This ensures proper DNS structure and prevents configuration issues down the road.
Creating the parent zone first gives you better control over all DNS records associated with your domain. While the system can automatically create a DNS zone when you add an A record, manually creating the parent zone first is the recommended best practice for maintaining organized DNS management.
How to Add an A Record
Follow these simple steps to create an A record for your hostname:
- Navigate to the DNS zone management area in your control panel
- Enter your server's IP address in the designated text box
- Click the Add Entry button
Once completed, your domain name will point to your server's IP address. DNS propagation typically takes a few minutes to a few hours, depending on your TTL settings and various DNS servers worldwide.
Verifying Your A Record
After adding your A record, you can verify it's working correctly by using DNS lookup tools. Check that your hostname resolves to the correct IP address. If you encounter issues, double-check that you entered the IP address correctly and that your DNS zone is properly configured.
Keep in mind that DNS changes don't take effect instantly. Allow sufficient time for propagation before troubleshooting.
Common A Record Use Cases
A records serve several important purposes for website management:
- Root domain: Point your main domain (example.com) to your server
- WWW subdomain: Connect www.example.com to your hosting server
- Custom subdomains: Create A records for blog.example.com, shop.example.com, or any other subdomain
- Multiple services: Point different hostnames to different IP addresses for various services
Frequently Asked Questions
What's the difference between an A record and a CNAME record?
An A record points directly to an IP address, while a CNAME record points to another domain name. Use A records when you know the specific IP address of your server. Use CNAME records when you want one domain to follow another domain's DNS settings.
How long does it take for an A record to start working?
A record changes typically propagate within 1 to 24 hours, though many changes take effect within minutes. The exact timing depends on TTL (Time To Live) settings and how quickly DNS servers worldwide update their cached records.
Can I add multiple A records for the same hostname?
Yes, you can add multiple A records pointing to different IP addresses for the same hostname. This technique, called round-robin DNS, can be used for basic load balancing or redundancy across multiple servers.
What happens if I enter the wrong IP address in my A record?
If you enter an incorrect IP address, your domain will either fail to resolve or point to the wrong server. Visitors will see error messages or potentially reach a different website entirely. Always double-check IP addresses before saving A record changes.
Our support team is available 24/7 to help you with DNS configuration and A record setup. Visit our contact page or email us at support@obhost.org for assistance.