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

Usually i'm developper...
Today my boss asked me a question, how to configure different dns rules for different user ?
Anyone have an idea ?
All people use same DNS, Section IT it's allowed to have acces to but human ressource doesn't have.
We have server on Debian 6.0.

Thanks for your help !

share|improve this question
up vote -2 down vote accepted

A filtering proxy is probably the right way to do this but If you need to do this in bind it has a feature called views that can give you a "split" dns that provides one answer to matching clients and other response to other clients.

share|improve this answer
Views doesn't help has a proxy... It will only permit user to see another user depending of it's IP. You can't use this kind of tools to block internet website, website like facebook have more than 1 ip, and futher more facebook got now some IPV6 ip. Views work only on intranet lan/wan, not on extranet/Internet. – Anarko_Bizounours Jun 10 '11 at 6:31
Can you not make your own authoritative entries for the domains you don't want people to get to, and send them to some other address? I agree you're not really blocking anything, but it would in effect block easy access to those sites unless one uses another DNS provider or their own hosts file. – pyasi Jun 10 '11 at 21:10
well, there is another way, it's to get all ip from the website you want to block and redirect them in the dns to google. Effective but still not very secure. It's like modifying the hosts file. – Anarko_Bizounours Jun 14 '11 at 8:34

For what you're trying to accomplish, DNS is not the solution.

Look into proxy servers that are capable of filtering such as squid, or other web filtering options.

share|improve this answer

DNS is definitly not the answer. All you can do with DNS is create some pool for addressing ip-range by services. But that's not what you want or need.

You'll need to use a proxy!

hope this will help you.

look at this website, you'll find some trick about proxy like squid (not a lot explanation, but some really easy to understand tutorial look at the bottom of the menu to select your sever OS) look here

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.