Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I enter some dummy subdomain like test.mysite.com I always get my site no matter that that subdomain does not exist, where do I tweak that in WHM so that if that subdomain does not exist, user will get not found or something?

share|improve this question
    
It might not be an option for your cPanel (depending on who your host is, might be best to directly ask your hosting site). –  Chris S Jun 9 '10 at 18:35
add comment

1 Answer

up vote 1 down vote accepted

It sounds as though there is a wildcard entry in your DNS records, possibly a CNAME record that directs back to the root domain or the 'www' hostname. Remove the wildcard record and any hostname which isn't otherwise defined will return an error to the user about not being able to find the website (or an ad page run by their DNS provider or Internet provider in some cases if they hijack NX DOMAIN responses).

The wildcard entry is a star (*) in most DNS editors and implementations.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.