mention the 'version' option before going into obscure view hacks for

doing a variant of the same thing
This commit is contained in:
Andreas Gustafsson
2000-12-20 05:52:28 +00:00
parent 0884c57e7a
commit 00843be81a
+22 -13
View File
@@ -71,20 +71,29 @@ A: Apply the kernel patch found in bind9/linux/coredump-patch and rebuild
the kernel. This patch causes multithreaded programs to dump the correct
thread.
Q: How do I restrict / prevent lookups of the version string remotely.
Q: How do I restrict people from looking up the server version?
A: Put a "version" option containing something other than the real
version in the "options" section of named.conf. Note doing this will
not prevent attacks and may impede people trying to diagnose problems
with your server. Also it is possible to "fingerprint" nameservers to
determine their version.
Q: How do I restrict only remote users from looking up the server
version?
A: The following view statement will intercept lookups as the internal
view that holds the information will be matched last. Note doing this
will not prevent attacks and may impeed people trying to diagnose problems
with your server. Also it is possible to "fingerprint" nameservers to
determine there version.
view that holds the version information will be matched last. The
caveats of the previous answer still apply, of course.
view "chaos" chaos {
match-clients { <those to be refused>; };
allow-query { none; };
view "chaos" chaos {
match-clients { <those to be refused>; };
allow-query { none; };
zone "." {
type hint;
file "/dev/null"; // or any empty file
};
};
zone "." {
type hint;
file "/dev/null"; // or any empty file
};
};