Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Secondary DNS server; named.conf error on Logwatch

Status
Not open for further replies.

rdolfsma

ISP
Aug 23, 2005
2
US
Hi All,

I have a secondary dns server, pulling its domains off some other machine. Works fine, but i do have an error in my log (Logwatch);

**Unmatched Entries**
/etc/named.conf:47: '}' expected near end of file: 14 Time(s)


The server does work fine though. My named.conf (if i need to add/remove lines/functions; please tell me. Have yet to finish the book, i'm not a BIND Guru);

Code:
// BIND 9 CONFIGURATION

acl "xfer" {
 127.0.0.1;
 xxx.xxx.xxx.xxx/24;
 xxx.xxx.xxx.xxx/24;
};

options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
allow-transfer { xfer; };
notify yes;
recursion yes;
allow-recursion { xfer; };
allow-query { any; };
version "you must be joking";
};

#logging{category "default" { "debug"; };
#category "general" { "debug"; };
#category "database" { "debug"; };
#category "security" { "debug"; };
#category "config" { "debug"; };
#category "resolver" { "debug"; };
#category "xfer-in" { "debug"; };
#category "xfer-out" { "debug"; };
#category "notify" { "debug"; };
#category "client" { "debug"; };
#category "unmatched" { "debug"; };
#category "network" { "debug"; };
#category "queries" { "debug"; };
#category "dispatch" { "debug"; };
#category "lame-servers" { "debug"; };
#channel "debug" {file "/var/log/named.log" versions 2 size 50m; #print-time yes; #print-category yes;};};

# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };

// rndc-key
include "/etc/rndc.key";
include "/var/named/secondaries.include";

The 'logging' was commented out by me because i wasn't seeing anything in Logwatch anymore...

Anyone know what sloud resolve the error?
 
I need more of the named.conf file. The error states that the problem is in line 47 of named.conf or close to it. /etc/named.conf:47.
 
Hello jyorgey,

This is line 47 (the last line in the named.conf);

include "/var/named/secondaries.include";
 
Sorry for the delay. Check the syntax in the secondaries.include file. How many zone are in this file? The error looks like there is a missing "}".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top