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

Setup: A VLAN without internetaccess. When a user connects his/her computer with cable and tries to surf, the traffic will be directed to internal website. How can I setup a DNS Wildcard so all traffic maps to internal website?

share|improve this question

DNS is not the right tool to achieve your goal IMHO.

This can be better done using the FW, doing a REDIRECT of all outbound traffic on web ports to your local web server, maybe you can consider adopting a transparent Web Proxy too ..

The implementation depends on you configuration, you can find tons of examples on the web; here is the first I got in google looking for iptables redirect

share|improve this answer
Thanks for your great answere. That's what I tried to recommend to the customer as well but that was not an option for them. They wanted it to be configured in the DNS, the users will never go to internet through this network. – user137717 Sep 21 '12 at 11:16
+1 agree, this OP asks something which breaks DNS standard.Proxy is better solution – user106666 Sep 21 '12 at 14:46

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.