Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restricting DNS queries: adddns and named.conf

Discussion in 'Bind/DNS/Nameserver' started by Drake, Jun 6, 2002.

  1. Drake

    Drake Well-Known Member

    Nov 9, 2001
    Likes Received:
    Trophy Points:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Would anyone care to offer a suggestion where I might find the template that is used for generating the entries to &named.conf& when a new dns zone is added?

    Here's the deal:

    a dns server is being abused by loads of queries for non-local zones. Yes, that means it's being used by the general public as their own name server.

    I've tightened up named.conf to stop this, however
    I must manually add the line &&allow-query { any; };&&
    to each zone entry.

    I want this to be done automatically when the zone entry is added to named.conf, so the WHM user will not have to get me to manually add the allow-query option to each new zone entry in named.conf he might create.
  2. ecoutez

    ecoutez Well-Known Member

    May 23, 2002
    Likes Received:
    Trophy Points:
    This is fairly simple (at least in BIND9)

    Check out the &recursion& option. You can specify &recursion no& in the Options section, and this will keep the server from being used by clients for non-authoritative lookups.

    - Jason

Share This Page