Sign inSign up

zcchann/bind9-dlz

By zcchann

•Updated over 7 years ago

Use the bind of the mysql database

Image
0

971

zcchann/bind9-dlz repository overview

⁠bind9-dlz # bind9-dlz

构建命令:docker build -t bind9-docker .

构建完成后启动系统:

启动命令:

docker run -it -d --net=host --restart always --privileged -e "mysql=host=192.168.1.1 dbname=dns ssl=false port=3306 user=dnsuser pass=password threads=50" --name bind-dlz bind9-docker

上面的命令已经指定数据库为192.168.1.1若数据库位置有变动直接更改host后面的IP地址指向新的数据库即可

若需要将日志导出到宿主机上 命令如下:

先在宿主上创建bind的日志路径

mkdir -p /var/log/bind

然后启动容器时增加命令

-v /var/log/bind:/var/log/bind

例如:

docker run -it -d --net=host --restart always --privileged -e "mysql=host=192.168.1.1 dbname=dns ssl=false port=3306 user =dnsuser pass=password threads=50" -v /var/log/bind:/var/log/bind --name bind-dlz bind9-docker

Tag summary

Content type

Image

Digest

Size

247.7 MB

Last updated

over 7 years ago

docker pull zcchann/bind9-dlz