All pastes #991766 Raw Edit

Miscellany

public text v1 · immutable
#991766 ·published 2008-04-21 10:22 UTC
rendered paste body
// Red Hat BIND Configuration Tool
//
// Default initial "Caching Only" name server configuration
//

server 192.168.0.254 {
        };
options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
};

zone "0.168.192.IN-ADDR.ARPA." IN {
        type master;
        file "192.168.0.db";
};
zone "." IN {
        type hint;
        file "named.root";
};

zone  "localhost." IN {
        type master;
        file "localhost.zone";
};

zone "0.0.127.in-addr.arpa." IN {
        type master;
        file "named.local";
};

zone "general-electric.ro" IN {
        type master;
        file "general-electric.ro.zone";
        allow-update { key "rndc-key"; };
};


include "/etc/rndc.key";


------------
general-electric.ro.zone
----------------
$TTL 86400
@ 1D IN SOA     @ root.general-electric.ro. ( 2004101914        3H 1H 1W 1D)

        NS      ns.general-electric.ro.
        NS      ns1.radiocomunicatii.ro.
        MX      5  relay.general-electric.ro.
        MX      10 mail.general-electric.ro.
*                       IN      CNAME   www.general-electric.ro.
localhost               IN      A       127.0.0.1
ns2                     IN      A       217.156.48.234
general-electric.ro.     IN      A       217.156.48.234
ns1                     IN      A       217.156.48.234
mail                    IN      A       217.156.48.234
relay                   IN      A       217.156.48.234
ns                      IN      A       217.156.48.234
www                     IN      A       217.156.48.234