@ -14,7 +14,7 @@ This docker container is for running the BIND9 DNS Server from within a containe
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
All Configuration for Bind is located in directory `/etc/bind/` when launching this container it's recommended that this path be a volume and you place your own config files there. Without doing so the container will start a DNS server that will only accept connections from `127.0.0.1`
|
All Configuration for Bind is located in directory `/etc/bind/conf.d` when launching this container it's recommended that this path be a volume and you place your own config files there. Without doing so the container will start a DNS server that will be of no use.
|
||||||
|
|
||||||
!!! info
|
!!! info
|
||||||
Bind9 Documentation can be found at <https://bind9.readthedocs.io/en/v9.18.19/reference.html>
|
Bind9 Documentation can be found at <https://bind9.readthedocs.io/en/v9.18.19/reference.html>
|
||||||
|
|||||||
19
includes/etc/bind/conf.d/options.conf
Normal file
19
includes/etc/bind/conf.d/options.conf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
options {
|
||||||
|
directory "/var/bind";
|
||||||
|
|
||||||
|
|
||||||
|
listen-on { 127.0.0.1; };
|
||||||
|
listen-on-v6 { none; };
|
||||||
|
|
||||||
|
allow-transfer {
|
||||||
|
none;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
pid-file "/var/run/named/named.pid";
|
||||||
|
|
||||||
|
|
||||||
|
allow-recursion { none; };
|
||||||
|
recursion no;
|
||||||
|
};
|
||||||
@ -1,43 +1,3 @@
|
|||||||
// Docs: https://bind9.readthedocs.io/en/v9.18.19/reference.html
|
// Docs: https://bind9.readthedocs.io/en/v9.18.19/reference.html
|
||||||
options {
|
|
||||||
directory "/var/bind";
|
|
||||||
|
|
||||||
// Configure the IPs to listen on here.
|
include "/etc/bind/conf.d/*.conf";
|
||||||
listen-on { 127.0.0.1; };
|
|
||||||
listen-on-v6 { none; };
|
|
||||||
|
|
||||||
// If you want to allow only specific hosts to use the DNS server:
|
|
||||||
//allow-query {
|
|
||||||
// 127.0.0.1;
|
|
||||||
//};
|
|
||||||
|
|
||||||
// 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.
|
|
||||||
allow-recursion { none; };
|
|
||||||
recursion no;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Example of how to configure a zone for which this server is the master:
|
|
||||||
//zone "example.com" IN {
|
|
||||||
// type master;
|
|
||||||
// file "/etc/bind/master/example.com";
|
|
||||||
//};
|
|
||||||
|
|
||||||
// You can include files:
|
|
||||||
// include "/etc/bind/conf.d/*.conf";
|
|
||||||
|
|||||||
Reference in New Issue
Block a user