5

This is the error I get when executing /etc/init.d/bind9 restart

Jun  1 10:43:29 local-dns named[2922]: starting BIND 9.5.1-P1 -u bind
Jun  1 10:43:29 local-dns named[2922]: found 1 CPU, using 1 worker thread
Jun  1 10:43:29 local-dns named[2922]: using up to 4096 sockets
Jun  1 10:43:29 local-dns named[2922]: loading configuration from '/etc/bind/named.conf'
Jun  1 10:43:29 local-dns named[2922]: /etc/bind/named.conf.local:13: unexpected end of input
Jun  1 10:43:29 local-dns named[2922]: loading configuration: unexpected end of input
Jun  1 10:43:29 local-dns named[2922]: exiting (due to fatal error)

Here is my /etc/bind/named.conf.local

$TTL 86400
@       IN      SOA     ns1.test.com. (
                        2006020201
                        604800
                        86400
                        2419200
                        604800 )

NS      ns1
MX      10 mail

No matter what I do I can't seem to get the unexpected end of input error to go away. I've tried with a single line after the MX record and having the MX be the last line. I'm not sure why it's giving this error. Does anyone know what's up?

2
5

named.conf.local is where you define zones (domains) you are authoritative for. You are not supposed to put your DNS records here.

Your named.conf.local should look like this.

zone "test.com" {
        type master;
        file "/etc/bind/test.com.dns";
        allow-query {any;};
};

All the stuff you currently have there should be in a file named named /etc/bind/test.com.dns.

1
  • right on, that was the issue. props. – razor Jun 1 '09 at 17:00
1

And if I may add something, please check again documentation for Bind, 'cause following is not a complete entry:

NS      ns1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy