DocsNetworkingDNS Configuration
Networking 5 min read

DNS Configuration

Configure DNS records to point your domain to your dedicated server.

DNS Configuration

Understanding DNS Records

Record TypePurposeExample
AMaps domain to IPv4 addressexample.com → 192.168.1.1
AAAAMaps domain to IPv6 addressexample.com → 2001:db8::1
CNAMEAlias for another domainwww.example.com → example.com
MXMail server routingexample.com → mail.example.com
TXTText records (SPF, DKIM)v=spf1 include:_spf.google.com
NSNameserver delegationexample.com → ns1.cdhosting.com

Setting Up DNS

Step 1: Get Your Server IP

Find your server's IP address in your Cd hosting dashboard or via SSH:

bash
curl ifconfig.me

Step 2: Configure A Records

At your domain registrar, create the following records:

Type: A
Name: @
Value: YOUR_SERVER_IP
TTL: 3600

Type: A
Name: www
Value: YOUR_SERVER_IP
TTL: 3600

Step 3: Verify DNS Propagation

bash
# Check A record
dig +short yourdomain.com

# Check from specific DNS server
dig @8.8.8.8 yourdomain.com

# Full DNS lookup
nslookup yourdomain.com

DNS changes typically propagate within 1-48 hours, though most updates are visible within 15 minutes.

Reverse DNS (rDNS)

For email servers, configure reverse DNS through your Cd hosting dashboard:

  1. Go to Server SettingsNetworking
  2. Click Set Reverse DNS
  3. Enter your domain name
  4. Allow up to 24 hours for propagation
Need help? Chat with us!