DNS Resolution Configuration Guide

DNS resolution points your domain to server IP address, an important step for website launch.

Common Record Types

A Record

Point domain to IPv4 address

example.com -> 192.168.1.1
CNAME Record

Point domain to another domain

www.example.com -> example.com
MX Record

Mail exchange record for email service

mail.example.com -> mail.server.com
TXT Record

Text record for domain ownership verification, etc.

_acme-challenge.example.com -> verification string

Configuration Steps

1

Step 1: Get Server IP

Get your server public IP address from server provider.

2

Step 2: Log in to Domain Management Panel

Log in to domain registrar (Alibaba Cloud, Tencent Cloud, GoDaddy, etc.) domain management panel.

3

Step 3: Add A Record

Add host record @ (main domain) or www, select record type A, fill server IP as record value.

4

Step 4: Add CNAME Record (Optional)

If subdomain is needed, add CNAME record pointing to main domain or CDN address.

5

Step 5: Wait for Resolution to Take Effect

DNS resolution usually takes a few minutes to 48 hours to take effect, check with nslookup or dig command.

Check Tools

  • Windows: nslookup example.com
  • Mac/Linux: dig example.com
  • Online tool: dnschecker.org

Notes

  • DNS resolution effective time varies by service provider
  • After modifying records, need to wait TTL time to take effect
  • Recommend setting reasonable TTL value (e.g. 600 seconds)
  • If using CDN, need to configure CNAME pointing to CDN address

FAQ

How long does DNS resolution take effect?

Usually a few minutes to several hours, maximum may be 48 hours. Can check in real-time with tools.

Why is resolution not effective?

Check if record is correct, TTL is expired, using correct DNS server.