GithubHelp home page GithubHelp logo

marcusmyers / docker-bind Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sameersbn/docker-bind

0.0 2.0 0.0 21.03 MB

Dockerize BIND DNS server with webmin for DNS administration

License: MIT License

Makefile 5.14% Shell 94.86%

docker-bind's Introduction

Table of Contents

Introduction

Dockerfile to build a bind dns server image with webmin for easy configuration.

Contributing

If you find this image useful here's how you can help:

  • Send a Pull Request with your awesome new features and bug fixes
  • Help new users with Issues they may encounter
  • Send me a tip via Bitcoin or using Gratipay

Installation

Pull the latest version of the image from the docker index. This is the recommended method of installation as it is easier to update image in the future. These builds are performed by the Docker Trusted Build service.

docker pull sameersbn/bind:latest

Alternately you can build the image yourself.

git clone https://github.com/sameersbn/docker-bind.git
cd docker-bind
docker build -t="$USER/bind" .

Quick Start

Run the image

docker run --name='bind' -d -p 53:53/udp -p 10000:10000 \
sameersbn/bind:latest

Point your browser to https://localhost:10000 and login as root. A random password is assigned for the root user. This password can be retrieved from the container logs.

docker logs bind 2>&1 | grep '^User: ' | tail -n1

Please note that the password is not persistent and changes every time the image is executed.

Data Store

You should mount a volume at /data for persistence of your bind server configuration.

docker run --name='bind' -d -p 53:53/udp -p 10000:10000 \
-v /opt/bind:/data sameersbn/bind:latest

Shell Access

For debugging and maintenance purposes you may want access the containers shell. If you are using docker version 1.3.0 or higher you can access a running containers shell using docker exec command.

docker exec -it bind bash

If you are using an older version of docker, you can use the nsenter linux tool (part of the util-linux package) to access the container shell.

Some linux distros (e.g. ubuntu) use older versions of the util-linux which do not include the nsenter tool. To get around this @jpetazzo has created a nice docker image that allows you to install the nsenter utility and a helper script named docker-enter on these distros.

To install nsenter execute the following command on your host,

docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter

Now you can access the container shell using the command

sudo docker-enter bind

For more information refer https://github.com/jpetazzo/nsenter

Upgrading

To upgrade to newer releases, simply follow this 3 step upgrade procedure.

  • Step 1: Update the docker image.
docker pull sameersbn/bind:latest
  • Step 2: Stop the currently running image
docker stop bind
  • Step 3: Start the image
docker run -name bind -d [OPTIONS] sameersbn/bind:latest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.