View Single Post
  #5  
Old 19th February 2007, 19:07
sPENKMAN sPENKMAN is offline
Junior Member
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Hm, it should work then...
Is named.conf.local included in named.conf?
What's in named.conf?
That's my idea exactly. I had it working some time ago but at a certain point it didn't anymore. I reinstalled bind with apt-get remove --purge but that also didn't solve my problem.

cat named.conf
Code:
include "/etc/bind/named.conf.options";

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

cat named.conf.local
Code:
acl internals {
    127.0.0.0/8;
    192.168.0.0/24;
};

view "internal" {
    match-clients { internals; };
    recursion yes;

    zone "rootdomains.nl" {
        type master;
        file "/etc/bind/internal/db.rootdomains.nl";
        allow-transfer { 192.168.0.52; };
    };

    zone "rootdomains.eu" {
        type master;
        file "/etc/bind/internal/db.rootdomains.eu";
        allow-transfer { 192.168.0.52; };
    };

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

    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";
    };
};

view "external" {
    match-clients { any; };
    recursion yes;

    zone "rootdomains.nl" {
        type master;
        file "/etc/bind/external/db.rootdomains.nl";
        allow-transfer { 82.192.80.188; };
    };

    zone "rootdomains.eu" {
        type master;
        file "/etc/bind/external/db.rootdomains.eu";
        allow-transfer { 82.192.80.188; };
    };

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

    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";
    };
}

/etc/init.d/bind9 restart
Code:
Feb 19 19:06:08 ns1 named[22322]: shutting down: flushing changes
Feb 19 19:06:08 ns1 named[22322]: stopping command channel on 127.0.0.1#953
Feb 19 19:06:08 ns1 named[22322]: no longer listening on 127.0.0.1#53
Feb 19 19:06:08 ns1 named[22322]: no longer listening on 192.168.0.51#53
Feb 19 19:06:08 ns1 named[22322]: exiting
Feb 19 19:06:10 ns1 named[26224]: starting BIND 9.3.2-P1 -u bind
Feb 19 19:06:10 ns1 named[26224]: found 1 CPU, using 1 worker thread
Feb 19 19:06:10 ns1 named[26224]: loading configuration from '/etc/bind/named.conf'
Feb 19 19:06:10 ns1 named[26224]: no IPv6 interfaces found
Feb 19 19:06:10 ns1 named[26224]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 19 19:06:10 ns1 named[26224]: listening on IPv4 interface venet0:0, 192.168.0.51#53
Feb 19 19:06:10 ns1 named[26224]: command channel listening on 127.0.0.1#953
Feb 19 19:06:10 ns1 named[26224]: zone 0.in-addr.arpa/IN/internal: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone 127.in-addr.arpa/IN/internal: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone 255.in-addr.arpa/IN/internal: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.eu/IN/internal: loaded serial 2007021505
Feb 19 19:06:10 ns1 named[26224]: zone localhost/IN/internal: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.nl/IN/internal: loaded serial 2007021503
Feb 19 19:06:10 ns1 named[26224]: zone 0.in-addr.arpa/IN/external: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone 127.in-addr.arpa/IN/external: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone 255.in-addr.arpa/IN/external: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.eu/IN/external: loaded serial 2007021505
Feb 19 19:06:10 ns1 named[26224]: zone localhost/IN/external: loaded serial 1
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.nl/IN/external: loaded serial 2007021704
Feb 19 19:06:10 ns1 named[26224]: running
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.nl/IN/internal: sending notifies (serial 2007021503)
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.eu/IN/internal: sending notifies (serial 2007021505)
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.nl/IN/external: sending notifies (serial 2007021704)
Feb 19 19:06:10 ns1 named[26224]: zone rootdomains.eu/IN/external: sending notifies (serial 2007021505)
Reply With Quote