LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bind9 Errors after reboot. (https://www.linuxquestions.org/questions/linux-newbie-8/bind9-errors-after-reboot-4175424453/)

Jacob843 08-28-2012 01:38 PM

Bind9 Errors after reboot.
 
Hello! My name is Jacob and I recently just setup my DNS servers. Last night, I successfully setup my two DNS servers, but then I shutdown the Ubuntu Lucid(1) and turned it back on today. I tried to start BIND9 from command line, like usual, but it failed. I then went into webmin and found out my problem:

Quote:

The following errors were found in the BIND configuration file /etc/bind/named.conf or referenced zone files ..

/etc/bind/named.conf.options:19: unknown option '68.37.86.61'
What did I do! I really need some help guys! Thanks!


1:
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

MensaWater 08-28-2012 02:36 PM

If you open the file /etc/bind/named.conf.options with your favorite editor (e.g. vim, nano or emacs) what does it have a line 19? Do you see the IP it complains about at that line or just above or below it?

It seems to be saying you put an option in with that IP that isn't valid. Perhaps you meant to have it as part of another line but it ended up on its own line by accident? Without seeing the options file its hard to guess.

Jacob843 08-28-2012 02:59 PM

Quote:

Originally Posted by MensaWater (Post 4766724)
If you open the file /etc/bind/named.conf.options with your favorite editor (e.g. vim, nano or emacs) what does it have a line 19? Do you see the IP it complains about at that line or just above or below it?

It seems to be saying you put an option in with that IP that isn't valid. Perhaps you meant to have it as part of another line but it ended up on its own line by accident? Without seeing the options file its hard to guess.

I configured it all in Webmin, which was fine until I rebooted the system.

This is my config file (named.conf.options):

Quote:

options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

// forwarders {
// 0.0.0.0;
// };

auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
68.37.86.61;
};

Thanks!

MensaWater 08-28-2012 03:25 PM

I don't use Webmin so can't tell why/how it messed it up but the error is complaining about this line:

68.37.86.61;

All by itself on a line in options an IP address or range has no meaning. You can resolve the error you saw by commenting out that line. Also the address above is an IPV4 format address so it wouldn't be related to listen-on-v6 statement. (You're specifying "any" for that which means any interface that is IPV6.)

It may be you intended to put in a standard listen-on in format:
listen-on { 68.37.86.61; };

Jacob843 08-28-2012 03:34 PM

This is my new config file:

Quote:

options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

// forwarders {
// 0.0.0.0;
// };

auth-nxdomain no; # conform to RFC1035
listen-on { 68.37.86.61; };
};

When I check the error log I get these:

Quote:

zone imposinghosting.com/IN: NS 'ns2.imposinghosting.com' has no address records (A or AAAA)
zone imposinghosting.com/IN: not loaded due to errors.
_default/imposinghosting.com/IN: bad zone
zone admin.imposinghosting.com/IN: ns2.admin.imposinghosting.com/NS 'ns2.imposinghosting.com.admin.imposinghosting.com' has no address records (A or AAAA)
I am trying to fix up the last error now. I will report back soon. Ideas?

Jacob843 08-28-2012 03:42 PM

EDIT! I think I fixed it! I just added ns2.imposinghosting.com to the Address list with my IP and it started up fine. I need to wait about an hour for it to catch up; I will report back soon!

Jacob843 08-28-2012 09:58 PM

Erm. Now my nameservers won't resolve to anything. It is like they aren't even there...


All times are GMT -5. The time now is 12:05 PM.