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

For some reason bind9 seems to route wildcard DNS even though they are not defined anywhere?

Accessing routes to the domain even though they are not explicitly defined anywhere? Neither is wildcard defined anywhere in the files in /var/cache/bind/

I typed sudo service bind9 reload a couple of times now.

Any ideas?

Update: also tried using rndc Update2: ran sudo service bind9 stop and then accessed a random subdomain and it got routed

share|improve this question

It's not likely that bind will generate wildcard replies if it's not told explicitly to do so. My best guess is that you configuring one server (or one bind instance) and querying another one.

First make sure you really stopped bind - sudo pgrep named - should return nothing. Then try local lookup - dig @localhost if it generates wildcard reply, you definitely have wildcard in the zone file - recheck which named.conf actually used and check which zone file actually used.

If on the localhost you have no wildcard, and still have wildcard on other queries - look which nameservers answer for your domain - dig NS and then query each of them dig

This should let you find the source of problem.

share|improve this answer

If your testing client is linux, check /etc/resolv.conf is pointing to the correct dns server. If you are testing from your dns box, the only dns server in that file should be

share|improve this answer

Your Answer


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.