This question must be so basic that I am bewildered why I cannot find a clear answer.
I want to configure my DNS for a new domain name. I configure the A record with the IP address of my host server. domain.com works fine. But how do I configure the CNAME to create the www. alias? It won't accept an IP address, and aliasing it to domain.com does not seem to work.
The following record should work:
www IN CNAME domain.com.
Make sure you have the . at the end of domain.com.. Names that don't end with . automatically get the origin appended, so it would be treated as domain.com.domain.com..
Related
I have purchased a domaine ex.com .
i set the cname and A record with www.
I did not change the default nameservers of godady.
if I type http://ex.com I can accses the website.
if I type http://www.ex.com or https://www.ex.com I get 404
how can I resolve this?
my records..
I have solved it,
I just changed the cname pointing value to # symbol insted of hostgator url.
this will redirect your server to the place (IP) that your A record pointing to.
We are running BIND 9.9.7 on Centos 6.5 and for a long time I have been creating "hostless" DNS entries so that sites work with or without the www.
Eg:
www IN A 192.168.1.1
domain.com. IN A 192.168.1.1
However, our client wants to use a CNAME record to a cloudfront host and the "hostless" entry doesn't work as a CNAME record.
In fact, it more than doesn't work, BIND won't even load the zone file. The error is
"failed: CNAME and other data"
domain.com. IN CNAME host.cloudfront.net.
www IN CNAME host.cloudfront.net.
It will load and resolve fine without the domain.com entry. I have tried a few variations, but nothing seems to work. including "", "."
Can anyone tell me the correct syntax for this entry?
There is no correct syntax for this (and it is not BIND specific, it is a side effect of RFC1912 which states that A CNAME record is not allowed to coexist with any other data.
Detailed explanation: Why can't a CNAME record be used at the apex (aka root) of a domain?
Some DNS providers might offer workaround hacks.
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
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
basically i have a website i.e www.example.com
when i enter www.example.com it deosnt work
but when i enter http://example.com it works why is this happening!!
You need to specify an a address for both www. and no-www
# - A address OR CNAME 255.255.255.255 180
www - A address OR CNAME 255.255.255.255 180
They are called host records .
It seems that both www.kornar.com and kornar.com are correctly set to resolve to the same IP address. However, it seems like your Apache install isn't set to handle www.kornar.com correctly. If you're using some sort of virtual hosting, you need to ensure that the server recognizes and host names that you want it to respond to.
It's hard to tell exactly what's wrong without more information on what webserver you're running and what it's configuration is.