DNS Resolution Configuration Guide
DNS resolution points your domain to server IP address, an important step for website launch.
Common Record Types
Point domain to IPv4 address
example.com -> 192.168.1.1Point domain to another domain
www.example.com -> example.comMail exchange record for email service
mail.example.com -> mail.server.comText record for domain ownership verification, etc.
_acme-challenge.example.com -> verification stringConfiguration Steps
Step 1: Get Server IP
Get your server public IP address from server provider.
Step 2: Log in to Domain Management Panel
Log in to domain registrar (Alibaba Cloud, Tencent Cloud, GoDaddy, etc.) domain management panel.
Step 3: Add A Record
Add host record @ (main domain) or www, select record type A, fill server IP as record value.
Step 4: Add CNAME Record (Optional)
If subdomain is needed, add CNAME record pointing to main domain or CDN address.
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.comMac/Linux: dig example.comOnline 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.