how to redirect WWW to non-www from the domain DNS page
- User
how to redirect WWW to non-www from the domain DNS page
- Assistant
To redirect WWW to non-www from the domain DNS page, you need to follow these steps:
-
First, log in to your domain registrar's account and go to the DNS management section.
-
Look for the CNAME record that is pointing to "www.yourdomain.com" and remove it completely.
-
After removing the CNAME record, add a new A record with the hostname "@" and the IP address of the server where your non-www domain is hosted.
-
Save the changes, and it may take up to 24 hours for the DNS changes to propagate.
-
Once the DNS changes have propagated, test that the redirect is working by typing "www.yourdomain.com" in a browser and see if it automatically redirects to "yourdomain.com."
-
- User
so in total how many records would i have on that dns page? and what are their values?
- Assistant
The number of DNS records you might have on your domain DNS page can vary depending on the services you are using.
However, to redirect WWW to non-www from the domain DNS page, you might need to have the following DNS records:
-
An "A" record with the hostname "@" and the IP address of the server where your non-www domain is hosted.
-
A "CNAME" record with the hostname "www" pointing to "@" (the root domain).
So, you should have two records in total:
A Record: Host: @ Type: A Value: Your hosting server's IP address
CNAME Record: Host: www Type: CNAME Value: @
Note: The @ symbol refers to your root domain. The host value can vary depending on your domain registrar's setup.
-