DNS stopped working, not won't restart

4 posts / 0 new
Last post
#1 Mon, 11/19/2007 - 11:13
AaronCP

DNS stopped working, not won't restart

I installed Virtualmin the other day and everything was working fine. Today I find out the DNS is no longer running so I tried to restart it and got this:

"Failed to start service : Failed to start BIND : Starting named: Error in named configuration: /etc/named.conf:4: no matching 'forwarders' statement [FAILED]"

I can't even FIND the /etc/named.conf file -- it doesn't exist.

Mon, 11/19/2007 - 16:28
Joe
Joe's picture

It's probably chrooted...check /var/named/chroot/etc/named.conf, perhaps?

I'm not sure why you'd get this error...I'd need to see the offending named.conf. Virtualmin doesn't deal with forwarders directives at all, so it seems unlikely to be at all related to this error. But changes using other tools, or the Webmin BIND module may be involved.

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:17 (Reply to #2)
AaronCP

Thanks for the reply. Yes, it was in the location you pointed me to. named.conf:

[code:1]options {
directory "/etc";
pid-file "/var/run/named/named.pid";
forward first;
};

zone "." {
type hint;
file "/etc/db.cache";
};

zone "simcorinc.com" {
type master;
file "/var/named/simcorinc.com.hosts";
};
zone "bestincentivesolutions.com" {
type master;
file "/var/named/bestincentivesolutions.com.hosts";
};
zone "premiumsforincentivesinc.com" {
type master;
file "/var/named/premiumsforincentivesinc.com.hosts";
};
key rndc-key {
algorithm hmac-md5;
secret "EaSzbwkqOjR0ZUhvNXh+eg==";
};
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
};
[/code:1]

This is a fresh CentOS 5 install. Immediately after installing the OS, I installed Virtualmin. I also installed Usermin.

Aaron

Tue, 11/20/2007 - 04:58 (Reply to #3)
AaronCP

I made a backup of named.conf and removed the " forward first;" line and bind was able to start and seems to be working fine.

What was the purpose " forward first;" and any idea how it got in there?

Topic locked