BIND9 Setup Error?

Discussion in 'HOWTO-Related Questions' started by n74jw, Dec 18, 2008.

  1. n74jw

    n74jw New Member

    Hello,

    I tried following this tutorial;

    (http://howtoforge.com/two_in_one_dns_bind9_views)

    I was able to get all of the way through it, but after the DNS service fails to start. The syslog indicates a configuration of some sort, but I do not know where. I have revisited all of the config files and they are as the should be.

    I used Ubuntu 8.10 for the server, according to the Perfect Setup for Ubuntu 8.10 Server. The DNS service is 'chrooted' in it's implementation. Could that be the problem?

    The server has only one NIC with a private IP address. Syslog excerpt:

    Dec 17 20:30:02 retro CRON[9432]: Sigfile not found
    Dec 17 20:36:10 retro named[9531]: starting BIND 9.5.0-P2 -u bind -t /var/lib/named
    Dec 17 20:36:10 retro named[9531]: found 1 CPU, using 1 worker thread
    Dec 17 20:36:10 retro named[9531]: loading configuration from '/etc/bind/named.conf'
    Dec 17 20:36:10 retro named[9531]: /etc/bind/named.conf:12: when using 'view' statements, all zones must be in views
    Dec 17 20:36:10 retro named[9531]: loading configuration: failure
    Dec 17 20:36:10 retro named[9531]: exiting (due to fatal error)

    Any suggestions?

    Thanks
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/bind/named.conf?
     
  3. n74jw

    n74jw New Member

    Hello,

    Thanks for the quick response!

    named.conf ================================================

    // This is the primary configuration file for the BIND DNS server named.
    //
    // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
    // structure of BIND configuration files in Debian, *BEFORE* you customize
    // this configuration file.
    //
    // If you are just adding zones, please do that in /etc/bind/named.conf.local

    include "/etc/bind/named.conf.options";

    // prime the server with knowledge of the root servers
    zone "." {
    type hint;
    file "/etc/bind/db.root";
    };

    // be authoritative for the localhost forward and reverse zones, and for
    // broadcast zones as per RFC 1912

    zone "localhost" {
    type master;
    file "/etc/bind/db.local";
    };

    zone "127.in-addr.arpa" {
    type master;
    file "/etc/bind/db.127";
    };

    zone "0.in-addr.arpa" {
    type master;
    file "/etc/bind/db.0";
    };

    zone "255.in-addr.arpa" {
    type master;
    file "/etc/bind/db.255";
    };

    include "/etc/bind/named.conf.local";

    ======================================================

    The file is "Stock", unmodofied.
     
  4. n74jw

    n74jw New Member

    I have tried placing all zones into views and still get the same errors.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    And what's in /var/lib/named/etc/bind/named.conf?
     

Share This Page