Prerequisites
Before adding an A record, make sure you have:
- Access to HestiaCP control panel
- A domain added in HestiaCP with DNS service enabled
- Your server's IPv4 address
What is an A Record?
An A (Address) record maps a domain or subdomain to an IPv4 address. It is the most fundamental DNS record type.
Step 1: Log in to HestiaCP
Access https://YOUR_SERVER_IP:8083 and log in.
Step 2: Navigate to DNS Section
Click on DNS in the top menu bar.
Step 3: Select Your Domain
Click on the domain name you want to manage.
Step 4: Click "Add DNS Record"
Click the green + Add DNS Record button.
Step 5: Configure the A Record
Fill in the details:
- Record Name: Leave empty for root domain (@), or enter subdomain (e.g.,
www,api,blog) - Record Type: Select A from dropdown
- IP Address: Enter your VPS IPv4 address (e.g.,
148.113.173.106) - Priority: Leave empty (not used for A records)
Step 6: Save the Record
Click Add to create the A record.
Common A Record Examples
| Record Name | Purpose | Example IP |
|---|---|---|
| (empty) | Root domain (example.com) | 148.113.173.106 |
| www | WWW subdomain | 148.113.173.106 |
| blog | Blog subdomain | 148.113.173.106 |
| api | API subdomain | 148.113.173.106 |
| Mail server | 148.113.173.106 |
Verify A Record
After adding, verify with dig command:
dig @YOUR_SERVER_IP example.com A
dig @YOUR_SERVER_IP www.example.com A
✅ A record has been added successfully!