Closed Thread
Results 1 to 2 of 2

Thread: Check /etc/named.conf for recursion restrictions

  1. #1
    Valor is offline Learning Programmer
    Join Date
    Oct 2007
    Posts
    30
    Rep Power
    0

    Check /etc/named.conf for recursion restrictions

    In CSF for WHM I am getting this error:

    Code:
    You have a local DNS server running but do not have any recursion restrictions  set in /etc/named.conf. This is a security and performance risk and you should  look at restricting recursive lookups to the local IP addresses only
    But it does not specify how to fix the problem. I figured named.conf would be a config file but it looks more like a script. I couldn't figure out what to do. Could anyone help?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    Take a look at your named.conf file. It should look like this:

    Code:
    include "/etc/rndc.key";
    
    controls {
            inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
    };
    
    //
    // named.conf for Red Hat caching-nameserver
    //
    
    options {
            directory "/var/named";
            dump-file "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
    };
    You need to add some lines to allow localhost recursion but nothing from the outside. If you disable this completely and run a DNS server this will cause the service to halt.

    You need to add these lines:

    Code:
    allow-recursion { trusted; };
    allow-notify { trusted; };
    allow-transfer { trusted; };
    forwarders { 127.0.0.1; };
    in Options and

    Code:
    acl "trusted" {
    127.0.0.1;
    };
    So it should look like this:

    Code:
    include "/etc/rndc.key";
    
    controls {
            inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
    };
    
    //
    // named.conf for Red Hat caching-nameserver
    //
    
    acl "trusted" {
    127.0.0.1;
    };
    
    options {
            directory "/var/named";
            dump-file "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            allow-recursion { trusted; };
            allow-notify { trusted; };
            allow-transfer { trusted; };
            forwarders { 127.0.0.1; };
    };
    Restart bind.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. if any student is named Jackson, help please
    By jackson6612 in forum C and C++
    Replies: 9
    Last Post: 06-10-2011, 04:40 AM
  2. Accessing dynamically named input boxes.
    By Blue Indian in forum PHP Development
    Replies: 13
    Last Post: 12-12-2010, 10:17 PM
  3. importError: no module named _mysql
    By ryanszeto in forum Python
    Replies: 2
    Last Post: 08-01-2007, 10:08 AM
  4. classes without named instances
    By Coder87 in forum C and C++
    Replies: 2
    Last Post: 04-09-2007, 10:22 AM
  5. grub.conf
    By John in forum General Programming
    Replies: 1
    Last Post: 01-22-2007, 01:20 PM

Tags for this Thread

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