Is my website www or without www subdomain? - dns

This seems like a really stupid question, but I can't tell if my website uses the www subdomain or without.
I purchased an expired domain a month ago and set up Google Webmastertools with a sitemap and all. It's indexed, but when searching for the website name, it's no where to be found. Webmastertools says that 'no data is available.' The support states that the www subdomain may be a factor.
How can I verify this? I've used info: domain.com, site: domain.com, info: www.domain.com and site: www.domain.com It pulls up domain.com
Thanks in advance!

Need to find whether the both www and non-www are pointing to same IP address. For this, Open command prompt (click start button >> run >> provide code "cmd"). Once command prompt is launched, then run the code "Ping domain.com" you can find a IP address and then run "ping www.domain.com" and you get another IP address. If both IPs are different then you have setup A record in DNS.
If they are same IP address, non-www need to redirect www or www redirect to non-www. To find this, provide both URLS on http://www.redirect-checker.org/ find out which are getting 200 status. The 200 status URL are need to be added on webmastertool.
Let me know if you need further help.

Who is handling the DNS? If you own domain.com, the www. is (as you said) a subdomain.
You can register any subdomain you want as long as you are pointing it to somewhere. For example if I set up domain.com with DNS pointing to the hosting I would create an A record for the subdomain www that points to the same IP address.
From there I would check the Host server and (I use IIS) make sure that the bindings for the domain are set up, usually I bind it to www.domain.com as default and then just send domain.com there.
I hope this helps answer your question

Related

How to change DNS settings to redirect website.com to www.website.com?

I have a DNS linked to Sites using CNAME from www in my DNS settings below. So when i type www.website.com it redirects me properly but when I type website.com nothing happens. I am thinking about editing # to add something to redirect to the www but I am not sure how to do that. Cold you please help me out?
Depends on the web server your utilizing, but what your looking for is url redirects. You can put in different urls and have the redirect to the primary. So you would place your domain.com in here to redirect to your binded url which is the www.domain.com. should also be able to use it to redirect http to https, though this is usually less of an issue with browsers and servers today.

Redirect www.subdomain domain mask to subdomain

I currently have subdomain.example.com as a domain mask for my website, using a CNAME record in my DNS settings. The website it is masking (lets call it mask.external.com) recognizes subdomain.example.com on its server and gives us a specific page.
My issue is that www.subdomain.example.com was bringing up a 404 'page not found', and after adding a CNAME record making www.subdomain.example.com as a second domain mask for mask.external.com, would simply give us a general page (not tailored to our website).
I was wondering if there was anything we could add (DNS records, .htaccess, etc) that would redirect www.subdomain.example.com to subdomain.example.com BEFORE it tried to visit this external service, so that we could properly serve it to users who type www.subdomain.example.com
Thanks in advance!
If you have cpanel then there might be an option in your cpanel to redirect subdomains to domain with and without a prefix "www".

Domain DNS settings redirection (www to https)

I have a SSL certificate for domain example.com. I want to redirect www.domain.com (and also the 2nd domain, e.g domain.com.au) request to the domain.com. In the example.com domain DNS setting I see
CNAME www.example.com is an alias of example.com
do I have to play with that entry or maybe set up that redirection on my server (Windows Server 2008 R2) ?
The CNAME only tells the browser (or more accurately, the resolver) how to find the IP address of the domain name. In this case, when the browser tries to resolve "www.example.com", it finds a CNAME record, so it needs to follow that alias and resolve "example.com". Eventually, it should arrive at an IP address to which it can make a HTTP(S) connection.
In short, yes, you need to setup the redirection on your web server as well.
Use URL Rewrite for redirections. It's a bit cryptic at first but it's a powerfull tool in IIS for this purpose. http://www.iis.net/learn/extensions/url-rewrite-module

How to redirect a deleted subdomain?

I want to (301) redirect all incoming traffic/links from blog.example.com to wwww.example.com. The blog.example.com subdomain does not exist anymore. How can I do this with the .htacess file on www.example.com?
This is a question better asked on ServerFault.
Anyway: This can't be done without having the domain. Domains are managed by the domain name system (DNS). Redirects are part of HTTP which is something completely different. If there's no longer a domain blog.example.com, the web browser can not resolve the address for it and thus has no way to connect to a HTTP server that could redirect it to www.example.com.
You need a valid DNS entry for blog.example.com otherwise this will not work. In your case you'd use a CNAME entry, i.e. tell the resolving system that www.example.com is the canonical name for blog.example.com. The client will then resolve www.example.com, but connect to the HTTP server with the host header being set to blog.example.com. This allows the HTTP server to answer with a redirect to www.example.com, which the client then can follow.

Subdomains not working when www is added?

I have purchased My Domain name from one registrar & hosted in another hosting company.
I have created a sub domain from my hosting domain manager lie http://subdomain.domain.com and it works fine. But when someone types in www.subdomain.domain.com the site is not working.
Do I need to make changes in my DNS Manager of hosting CPanel or DNS Manager of my Domain CPanel?
Also What all Records I need to add ( like A Record or CNAME) to redirect www.subdomain.domain.com to subdomain.domain.com.
I don't want to see www for my subdomain, but only wants to get redirected to subdomain.domain.com.
It doesn't work because www.subdomain.domain.com doesn't exist. You have to add a CNAME record in your zone subdomain.domain.com the same way you've added the host subdomain to domain.com.
You need to register that subdomin too.
Yes - www.subdomain.domain.com is a subdomin of subdomain.domain.com. There is nothing special about the www prefix, as far as the domain system or browsers are concerned.
This helped me out. I hope it helps anyone going through the same thing.
Yes, as you said CNAME record www for customer1.mysite.com will report an error.
To make it working, you should be able to add CNAME record www.customer1 for mysite.com instead of www for customer1.mysite.com - xMudrii https://www.digitalocean.com/community/questions/how-to-configure-subdomains-to-use-www-and-non-www
Create CNAME as sub.domain.
Point to # where sub.domain is your subdomain name and maindomain name.
If you want to add "www" in the subdomain then create the same configuration subdomain and add "www" in that domain.
you required to add both domains name www.subdomain.domain.com and subdomain.domain.com
Say you have a website www.example.com and you want to have a working link like www.service.example.com, then you need to enter the subdomain name www.service (and not service) while setting up the sub-domain.
Preferably set up both sub-domains i.e. www.service and service for users who type in www.service.example.com and service.example.com on their browsers.

Resources