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!

Restricting DNS queries: adddns and named.conf

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

  1. Drake

    Drake Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    316
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice