We help IT Professionals succeed at work.
Get Started

How to force only WWW and other defined domains work for my DNS?

Nav444 asked
Last Modified: 2010-03-18
Following is my DNS setting. At present if I type www.mysite.com will show the site, but also any thing else like, aaaaaaaa.mysite.com also works!! how can I stop this. I want only those that I define in ZONE file work.

@       IN      SOA     mysite.com. root.mysite.com. (
                202342321       ; serial, todays date + todays serial #
                8H              ; refresh, seconds
                2H              ; retry, seconds
                4W              ; expire, seconds
                1D )            ; minimum, seconds

                  NS      ns.mysite.com.
                  NS      ns2.mysite.com.

                  MX    10      mysite.com.

mysite.com.        A
images.mysite.com. A
images.mysite.com. A

www             CNAME   mysite.com.
ftp             CNAME   mysite.com.
mail            A
supermailer        A

mailhost        CNAME   mail.mysite.com.
login           CNAME   www
ns              A
ns2             A

pop             A
real            A
smtp            A
*               A

Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE