🌐 How to Connect a Domain to a Server via A Records
If you're not using Cloudflare and want to connect your domain directly to your server, you only need to set up correct A records. This will link your domain name to your VPS or dedicated server IP address. In this guide, we explain how to configure A records at your domain registrar, what to check, and how to speed up delegation.
📋 What is an A Record?
- 🔗 An A record (Address Record) is a DNS record that points a domain to an IP address.
- 🔍 Typically, records are created for
@
(root) andwww
. - 📡 Example:
example.com → 192.0.2.10
🔧 Step 1: Find Your Server's IP Address
In the Bit.Hosting panel, your IP address is shown in the service details or in the email sent after your VPS/server activation.
🌍 Step 2: Go to Your Registrar's DNS Zone
- 🧭 Log into your domain registrar (e.g., Reg.ru, GoDaddy, Namecheap)
- 📁 Find the “DNS Management” or “Zone Editor” section
- ➕ Create the following A records:
@ A 192.0.2.10 www A 192.0.2.10
⏳ Step 3: Wait for DNS Propagation
Changes usually take effect within 5–15 minutes, but may take up to 24 hours depending on TTL and DNS caching by ISPs.
🔍 Step 4: Verify DNS Delegation
- 🧪 Use the command:
ping example.com
- 🔎 Check A record:
dig +short example.com
ornslookup example.com
- 🌐 Online tool: Google Dig Tool
📌 Tips from Bit.Hosting
- 🔐 Make sure your server is configured to accept HTTP/HTTPS requests for the domain
- 📁 If you're using a control panel (ISPmanager, Vesta, etc.) — add the domain manually
- 🔁 Don’t use old NS records and Cloudflare at the same time — only one DNS source should be active
- 📉 “Server IP address could not be found” means your A record is missing or not yet propagated
- 🧯 When changing hosting providers, always update A records to the new IP
If your domain doesn't work or you're unsure about the setup — contact us. We'll check and connect it for you! 🔧