Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd April 2008, 13:34
c4rdinal c4rdinal is offline
Member
 
Join Date: Mar 2008
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two-in-one DNS server with BIND9 - all zones must be in views

First of all thank you for the Howto!

I would like to ask something about my bind logs as follows:

tail -f /var/log/syslogd

Apr 3 02:54:27 deneb named[27976]: /etc/bind/named.conf:10: when using 'view' statements, all zones must be in views

What does it mean and how to resolve it?
I can ping external sites as well as internal but what does the log is about?

Also,

Linux:~# named-checkzone example.com db.example
zone example.com/IN: loading master file db.example: file not found

How can I fix it?

TIA
Reply With Quote
Sponsored Links
  #2  
Old 2nd April 2008, 13:41
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

The first error means that all your zones need to be in the view declaration

Code:
view "viewname" {


}
Second error means named cannot find your zone file
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 3rd April 2008, 02:50
c4rdinal c4rdinal is offline
Member
 
Join Date: Mar 2008
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

Here's what I included in my /etc/bind/named.conf.local

view "internal" {
match-clients { internals; };
recursion yes;
zone "domain1.com" {
type master;
file "/etc/bind/zones/internal/db.domain1";
};
};

view "external" {
match-clients { any; };
recursion no;
zone "domain1.com" {
type master;
file "/etc/bind/zones/external/db.domain1";
allow-transfer { slaves; };

};
zone "domain2.com" {
type master;
file "/etc/bind/zones/external/db.domain2";
allow-transfer { slaves; };
};

I have 2 external domains and 1 internal. Should I include in the view my reverse zones?

Thanks alot.
Reply With Quote
  #4  
Old 3rd April 2008, 08:35
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
 
Default

If you are using views all your zones should be within a view.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
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
Reverse DNS + SPF and ISPConfig as my DNS Server yurtboy1 General 1 6th November 2007 09:15
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
DNS server with views wildgoosed HOWTO-Related Questions 14 1st August 2007 20:51
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
DNS & Server Scenario akaiser Server Operation 2 11th January 2007 15:28


All times are GMT +2. The time now is 02:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.