Allow recursion only for internal clients on public DNS

From Notes_Wiki
Revision as of 08:32, 10 March 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 6.x > Bind DNS server configuration > Allow recursion only for internal clients on public DNS

To allow recursion only for internal clients on public DNS use:

   acl internal { 127.0.0.1; 172.16.0.0/12; 192.168.0.0/16; 10.0.0.0/8;};

   options {
   ...
   recursion yes;
   allow-recursion { internal; };
   ...
   };




Home > CentOS > CentOS 6.x > Bind DNS server configuration > Allow recursion only for internal clients on public DNS