How to Forward DNS to Non-www: Understanding the Difference Between WWW and Non-WWW

How do I forward DNS to non-www?
DNS cannot redirect your www site to non-www. The only purpose of DNS is to point both www and non-www to your server’s IP address using A , AAAA or CNAME records (it makes little difference). The nginx configuration is responsible for performing the redirect from www to non-www.
Read more on stackoverflow.com

You may have noticed that certain URLs begin with “www” and others do not when it comes to website addresses. For website owners who want their domain to appear consistently across all platforms, this can be confusing. The distinction between www and non-www will be discussed in this post, along with a step-by-step tutorial on how to forward your DNS to non-www.

What Sets the WWW Apart From Other Websites?

The “World Wide Web” abbreviation was once a subdomain for websites. It was designed to set apart various services provided by a domain, like email or FTP servers. However, as the internet grew in popularity, the “www” subdomain came to be associated with viewing the online.

Contrarily, non-www is only the domain name without the “www” subdomain. As an illustration, even if example.com and www.example.com go to the same website, they are actually two separate URLs.

Due to its shorter and simpler to remember nature, non-www is frequently chosen as the default domain by website owners. But ultimately, it comes down to personal taste. Instructions for Forwarding DNS to Non-www

You might be asking how to redirect your DNS to the non-www version of your domain now that you are aware of the distinction between www and non-www. Take these easy actions:

1. Sign in to your hosting or domain registrar account.

2. Access your domain’s DNS configuration page.

3. Look for a “CNAME” record creation option.

4. Type “www” (without the quotations) in the “Alias” or “Host” column. 5. Type your non-www domain name (for instance, example.com) in the “Points to” or “Destination” section. 6. Save the modifications to your DNS settings.

You’ve successfully forwarded your DNS to a non-www address, congratulations! Be patient; it can take a few hours for the modifications to take effect.

In conclusion, website owners who want to keep a consistent online presence should be aware of the differences between www and non-www. You may make sure that your website is reachable through a single, simple-to-remember URL by forwarding your DNS to non-www.