Results 1 to 2 of 2

Thread: How to disallow domain listing all hosts from bind9.10

  1. #1
    Join Date
    Jun 2016
    Beans
    1

    How to disallow domain listing all hosts from bind9.10

    Hello,

    I need to disallow the listing of all hosts from a domain answered by bind9.10 dns.
    Scenario:

    nslookup
    ls domian-name.something

    Now you get listed all existing hosts.

    Security warning from dns security tools:

    "Open Zone Transfer Detected
    That means we asked for the information in your entire DNS zone and your DNS server gave it to us. This is generally considered a security issue as it can reveal host names/sub-domains or other DNS records that you don't want disseminated to the public. It is often the first step taken by an attacker looking for ways to exploit your system."

    How can i restrict/disallow this query?

    Thank you!

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: How to disallow domain listing all hosts from bind9.10

    You should only allow zone transfers from the hosts you use as DNS secondaries. In the "options" section at the top of named.conf add the "allow-transfer" directive like this:
    Code:
    options {
         [stuff]
         allow-transfer {
              127.0.0.1;
              ip.addr.of secondary1;
              ip.addr.of secondary2;
              [etc.]
         };
         [other stuff]
    };
    Pay attention to the semi-colons; they are required.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •