FAQ: Why “www.domain.com” Doesn’t Work, But “domain.com” Works Fine (or vice versa)
One of the most common causes is misconfigured DNS records. A domain needs to be properly linked to an IP address for both “www.domain.com” and “domain.com” to work.
Key Points:
- A Record: “domain.com” might have an A record pointing to the server’s IP address, while “www.domain.com” does not.
- CNAME Record: “www.domain.com” should often have a CNAME record pointing to “domain.com”, but if this is missing or incorrect, “www.domain.com” won’t resolve.
Solution:
- Ensure both “www” and “domain.com” have proper DNS records:
- A record for “domain.com” should point to your server’s IP.
- A CNAME record for “www” should point to “domain.com” (if preferred).