Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website with dns pointing to my own server. the website WITH lead to the right site, but the address lead to a publicity site that I DONT CONTROL

I like to make and the lead to the same DNS

Can i make it with .htaccess or with google analitic, but since i dont know the resolver that lead me to the bizzare page i dont have control on that

As request : (ok) (no)

share|improve this question

migrated from Feb 5 '10 at 11:09

This question came from our site for professional and enthusiast programmers.

waht's the site url. Maybe we can help you. – Christopher Mahan Feb 5 '10 at 9:19
How exactly do you have control over the subdomain if you don't have control of the domani itself? – Jon Cage Feb 5 '10 at 9:20
What do you mean "do not control"? It jumps to a third party, or displays Who manages the DNS settings? If you have access, could you list them? – ron Feb 5 '10 at 9:22
Points to the same site for me, works now? – artifex Feb 5 '10 at 14:30

All you need to do is to add an A record for '' in your nameserver that points to the public IP address of your web server. You have to do this from the same place where you've set the IP address for the www subdomain.

If '' is pointing somewhere out of your control, there is no way you can do anything useful with .htaccess, before you add/change the A record in the nameserver.


Further to your edit, it looks like your DNS records are fine, and both are working. If you have recently modified your nameservers, they may take a few hours to work correctly because of DNS caching.

share|improve this answer
and have the www cname point to the A record. – Christopher Mahan Feb 5 '10 at 9:22
@Christopher Mahan: why should we use CNAME in this case? – Parsa Feb 5 '10 at 12:39

If is under your control, you should put both and in DNS pointing to your server.

It might be that a provider set this up for you and they forgot to put both entries in DNS? In that case you should get in contact with them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.