Ask any question about Web Hosting here... and get an instant response.
How do I configure DNS records for a new domain?
Asked on Nov 18, 2025
Answer
Configuring DNS records for a new domain involves setting up various types of records that direct traffic to your website and services. The most common records include A, CNAME, MX, and TXT records.
; Domain: example.com
; A record for the root domain
@ IN A 192.0.2.1
; CNAME record for www subdomain
www IN CNAME example.com.
; MX record for email server
@ IN MX 10 mail.example.com.
; TXT record for verification
@ IN TXT "v=spf1 include:_spf.example.com ~all"
Additional Comment:
- Log in to your domain registrar's control panel to access DNS settings.
- The A record points your domain to an IP address, typically your web server's IP.
- CNAME records are used to alias one name to another, often for subdomains.
- MX records direct email to your mail server; prioritize them with a preference number.
- TXT records can be used for verification and SPF settings to help prevent email spoofing.
- Changes to DNS records can take up to 48 hours to propagate globally.
Recommended Links:
