LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-15-2004, 11:43 AM   #1
Edaph
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
BIND 9.2.3 doesn't accept ACL's in forwarders statement?


Well, the subject pretty much asks the question. I've an access control list statement that defines my internet service providers nameservers, but named spits out an error on rndc reload. Is there something wrong with my configuration (I've reviewed it quite a few times by now), or is this just a "feature" of named?

I'd like to have it configured with an ACL, so it would be easier to read out the nameservers in a script. It's beyond my scripting skills to read the forwarders statement from *just* the options block...

/etc/named.conf
Code:
acl nameservers { xxx.xxx.x.x; xxx.xxx.x.xx; };

*snip*

options {
  *snip*
  forward only;
  forwarders { nameservers; };
  *snip*
}
/var/log/messages
Code:
May 15 19:31:38 lucifer named[2195]: loading configuration from '/etc/named.conf'
May 15 19:31:38 lcf named[2195]: /etc/named.conf:40: expected IP address near 'nameservers'
May 15 19:31:38 lcf named[2195]: reloading configuration failed: unexpected token
Regards,
Edaph
 
Old 05-15-2004, 09:02 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
ACLs don't seem to be valid for use in the forwarders context. In my DNS & BIND book (only valid up through 8.x.x, but should be fairly accurate for 9.x.x) it lists the syntax for forwarders as { in_addr ; } while other statements such as allow-query have { address_match_list ; }, so they take different types of arguments, although they will both use IPs.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to read named.conf forwarders info in bash script. scottman Programming 4 09-11-2004 09:38 PM
Update DNS forwarders in named.conf automatically? linuxuser2005 Linux - Networking 3 08-21-2004 03:26 PM
Linux ACL's? gsmonk Linux - General 4 09-06-2003 02:35 PM
DNS forwarders and A-Records fquinteros Linux - Networking 1 08-23-2003 05:12 AM
squid ACL's seanfitz Linux - Networking 0 05-13-2003 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration