Sign inSign up

xiaodage/bind-dns

By xiaodage

Updated over 7 years ago

Image
1

45

xiaodage/bind-dns repository overview

需要自己添加内网 ft.db和 name.conf 这两个文件直接拷贝到容器/etc/bind/ 下即可
我自己的配置

[root@tomcat8 bind]# vim ft.db

; ; BIND data file for local loopback interface ; $TTL 86400 @ IN SOA ns.ft. root.ft. ( 2014032802 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns.ft. @ IN A 192.168.10.15 ns IN A 192.168.10.15 oa IN A 192.168.10.15 aaa.com IN A 192.168.10.15

  •   IN      A       192.168.10.15
    

另一个配置
options { directory "/var/bind";

    // Configure the IPs to listen on here.
   # listen-on { 127.0.0.1; };
    listen-on port 53 { any; };
    listen-on-v6 { none; };
    forwarders {
            8.8.8.8;
            8.8.4.4;
            114.114.114.114;
    };
    // If you want to allow only specific hosts to use the DNS server:
    //allow-query {
    //      127.0.0.1;
    //};
    allow-query { any; };
    allow-query-cache { any; };
    dnssec-validation auto;
    auth-nxdomain no;    # conform to RFC1035
    // Specify a list of IPs/masks to allow zone transfers to here.
    //
    // You can override this on a per-zone basis by specifying this inside a zone
    // block.
    //
    // Warning: Removing this block will cause BIND to revert to its default
    //          behaviour of allowing zone transfers to any host (!).
    allow-transfer {
            none;
    };

    // If you have problems and are behind a firewall:
    //query-source address * port 53;

    pid-file "/var/run/named/named.pid";

    // Changing this is NOT RECOMMENDED; see the notes above and in
    // named.conf.recursive.
    recursion      yes;
    allow-recursion   { any; };

}; // Example of how to configure a zone for which this server is the master: zone "ft" IN { type master; file "/etc/bind/ft.db"; };

// You can include files: //include "/etc/bind/example.conf";

注意这个 ft 即可

Tag summary

Content type

Image

Digest

Size

5 MB

Last updated

over 7 years ago

docker pull xiaodage/bind-dns:2019