All pastes #3852 Raw Edit

named.conf in gentoo

public text v1 · immutable
#3852 ·published 2005-01-07 14:20 UTC
rendered paste body
options {
        directory "/var/bind";

        // uncomment the following lines to turn on DNS forwarding,
        // and change the forwarding ip address(es) :
        forward first;
        forwarders {
                my_dns_ip_1;
                my_dns_ip_2;
        };

        // listen-on-v6 { none; };
        // listen-on { 127.0.0.1; };

        // to allow only specific hosts to use the DNS server:
        allow-query {
                127.0.0.1;
        };

        // if you have problems and are behind a firewall:
        //query-source address * port 53;
        pid-file "/var/run/named/named.pid";
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "pri/localhost.zone";
        allow-update { none; };
        notify no;
};

zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
        notify no;
};

zone "pekkakala.fi" IN {
        type master;
        file "pri/pekkakala.zone";
        allow-update { none; };
        notify no;
};