A Simple Vanilla BIND9 Server With Custom Zone Files Option
1.0K
This image is a basic and vanilla BIND9 server based upon the Ubuntu image.
To run the image and enable access to it, you need to map a port:
docker run -it -p 53:53 -p 53:53/udp b69ca/bind9
This command maps port 53 for both UDP and TCP
In order to have custom zones, you first need to map a virtual folder. The server attempts to load a file called "myzones.conf" from /data so in order to make use of this, you need to map a data folder to the container such as in the following way:
docker run -it -p 53:53 -p 53:53/udp -v path_to_local_store:/data b69ca/bind9
The server will create the myzones.conf file upon starting
The myzones.conf file should contain the custom zones, and point to their configuration file, such as in the example below:
zone "b69ca.com" in {
type master;
file "b69ca.com.zonefile";
};
You would then create a new file with the name referenced (e.g. b69ca.com.zonefile) which contains your zone information.
20170327 - Initial build.
Content type
Image
Digest
Size
128.6 MB
Last updated
over 9 years ago
docker pull b69ca/bind9