K
K
karpos2020-02-22 10:58:56
Domain Name System
karpos, 2020-02-22 10:58:56

How to configure bind9 for local zone?

named.conf

options {
        #listen-on port 53 { 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        #recursing-file  "/var/named/data/named.recursing";
        #secroots-file   "/var/named/data/named.secroots";
        allow-query     { any; };
        allow-transfer  { none; };
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.root.key";

        managed-keys-directory "/var/named/dynamic";

        #pid-file "/run/named/named.pid";
        #session-keyfile "/run/named/session.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

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

zone "loc" IN {
        type master;
        file "named.loc";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


named.loc

$TTL 604800
@       IN SOA loc. root.loc. (
                                        2017120801      ; serial
                                        3600            ; refresh
                                        1800            ; retry
                                        604800          ; expire
                                        86400 )         ; minimum
@       IN      A       192.168.17.100
www     IN      A       192.168.17.100


Gentlemen, do not judge strictly, I want to configure bind for the local .loc zone, I understand the theory, the only thing I do not fully understand is how to correctly register NS. My subnet is 192.168.17.0/24.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question