Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

container-images/bind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bind container image

This repository contains Dockerfile for BIND based on baseruntime. For more information about modules see official Fedora Modularity documentation.

Configuration

There are two options for running Bind DNS server:

1) Authoritative

Authoritative-only servers only respond to iterative queries for the zones that they are authoritative for. This means that if the server does not know the answer, it will just tell the client (usually some kind of resolving DNS server) that it does not know the answer and give a reference to a server that may know more.

Authoritative-only DNS servers are often a good configuration for high performance because they do not have the overhead of resolving recursive queries from clients. They only care about the zones that they are designed to serve.

Domains need to be set in config.yaml

2) Caching (recursive)

This type of server is also known as a resolver because it handles recursive queries and generally can handle the grunt work of tracking down DNS data from other servers.

When a caching DNS server tracks down the answer to a client's query, it returns the answer to the client. But it also stores the answer in its cache for the period of time. The cache can then be used as a source for subsequent requests in order to speed up the total round-trip time.

Nameservers can be set in config.yaml

Environment variables

Variable name Description Default
SERVER_TYPE Type of DNS server. The options are 'AUTHORITATIVE' and 'CACHING'. CACHING

Build

Container image uses distgen to provide portability. To build the image, run:

$ make build

Build requires go-md2man for man page generation, use dnf(or another package manager) to istall it before building:

# dnf install go-md2man

Usage

docker run -d -p 127.0.0.1:53:53 -p 127.0.0.1:53:53/udp -e SERVER_TYPE=<TYPE> modularitycontainers/bind

Substitute <TYPE> with either 'AUTHORITATIVE' or 'CACHING' option. If the option value is not provided, the default value is 'CACHING'.

Test

This repository also provides tests (based on MTF) which checks basic functionality of the bind image.

Run the tests using Makefile :

$ make test

Notes

Note that the current version of the image talks to authoritative name servers and therefore doesn't work in restricted environments.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published