Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th March 2006, 03:52 AM
rioguia Offline
Registered User
 
Join Date: May 2005
Posts: 104
denying only nonlocal recursive queries in named.conf

I am attempting to disable recursion from outside my network and provide authoritative name services exclusively for my own domains. At the same time, I want my server to provide recursive services for my local network xxx.xxx.x.x; xxx.xxx.x.y xxx.xxx.x.z;

Whenever I attempt this, I get no error from /usr/sbin/named-checkconf /path/to/named.conf. However, my name server refuses to answer queries (at least locally) and my log file shows this error:
Quote:
Mar 13 22:35:35 testy named[28667]: both "recursion no;" and "allow-recursion" active
Can someone help me find my probably obvious and simple error?

The relevant portion of my named.conf is below:

Code:
options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        version "[SECURED]";
        recursion no;
         allow-recursion { 127.0.0.1; xxx.xxx.x.x; xxx.xxx.x.y xxx.xxx.x.z; };
          /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         listen-on port 53 {
         127.0.0.1; xxx.xxx.x.z; my.public.ip.address;

};
         // query-source address * port 53;
};
//
// a caching only nameserver config
//
// controls {
//      inet 127.0.0.1 allow { localhost; } keys { rndckey; };
// };





zone "." IN {
        type hint;
        file "named.ca";
};
Reply With Quote
  #2  
Old 15th March 2006, 11:53 AM
rioguia Offline
Registered User
 
Join Date: May 2005
Posts: 104
Just one recursion directive but not both?

Quote:
Originally Posted by rioguia
Code:
options {
 
     #   recursion no;
         allow-recursion { 127.0.0.1; xxx.xxx.x.x; xxx.xxx.x.y xxx.xxx.x.z; };
         
 
};
I appear to have solved this problem by specifying the second directive (allow-recursion) and omitting the first. (recursion no.

Last edited by rioguia; 15th March 2006 at 12:49 PM. Reason: typo in directive
Reply With Quote
Reply

Tags
denying, namedconf, nonlocal, queries, recursive

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
named.conf trouble Magua Using Fedora 0 14th October 2008 06:49 PM
named.conf template bookwar Servers & Networking 4 18th March 2008 04:42 AM
named.conf file! hermouche Servers & Networking 4 7th November 2007 05:50 AM
named.conf (bind) knivla Servers & Networking 4 2nd January 2007 03:10 AM


Current GMT-time: 15:03 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat