Image is based on ubuntu:18.04. This image build support multiple architectures such as arm64.
203
Image is based on ubuntu:18.04. This image build support multiple architectures such as arm64.
BIND (Berkeley Internet Name Domain) is the open and most common implementation of a DNS server that provides DNS-to-IP address translation and vice versa. The executable BIND server daemon is named.
Here are some example snippets to help you get started creating a container. The image was going to run in host mode. In order not to forward port 53 from the container to the localhost. All configuration files are forwarded to a localhost in directory /home/user/docker/bind. The time and localzone in the container corresponds to the time and localzone of your localhost. For configure DNS service BIND9 read the service manuals.
#!/bin/bash
docker run -d -it \
--name="dns-bind9" \
--restart="unless-stopped" \
--network="host" \
-P \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
-v /home/user/docker/bind:/etc/bind \
-v /var/log/named:/var/log/named \
dns-bind9:latest
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate external:internal respectively. For example, -P would expose all exposed in build image ports from the container ( 53 and 53/udp).
| Parameter | Function |
|---|---|
-P | Expose all exposed in build image ports from the container ( 53 and 53/udp). |
--network="host" | Run container in a host mode. |
-v /etc/timezone:/etc/timezone:ro | Timezone in container from localhost. |
-v /etc/localtime:/etc/localtime:ro | Localtime in container from localhost. |
-v /home/user/docker/bind:/etc/bind | Configuration files of service bind9. |
-v /var/log/named:/var/log/named | Log files of service bind9. |
docker exec -it dns-bind9 /bin/bashdocker logs -f dns-bind9docker pull drpesojr/dns-bind9docker stop dns-bind9docker rm dns-bind9/config folder and settings will be preserved)docker start dns-bind9docker image pruneContent type
Image
Digest
Size
77.7 MB
Last updated
over 6 years ago
docker pull drpesojr/dns-bind9