Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there !
I am using BIND9 and I wand to deny some queries per domain basis.
Example: I don't want client1 to query the server for Ip address (A) for domain.com
The server should respond with an error, no such domain, nothing, etc.
It's not authoritative for domain.com. I don't want the server to resolve recursive or iterative that domain.
and use it (in the options part of named.conf) like:
Code:
allow-query {127.0.0.1; queries;};
This way localhost and the whole 192.168.0.0/24 network, except the 192.168.0.1 host, can query the server. You can do the same for allow-recursion if you want.
In this case, the only thing that comes in mind, is to use 2 views:
One for that host and configure your name server as authoritative for the domains you don't want him to visit and another view for the rest of the hosts.
In the 1st view you can either use fake zonefile(s), or make zonefile(s) to point to /dev/null, so he gets a SERVFAIL response
You understand of course, that he can use a different name server, so it'll be able to resolve any domain
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.