乐趣区

关于docker:dndbind

office 镜像

internetsystemsconsortium/bind9

https://hub.docker.com/r/inte…

文档

https://bind9.readthedocs.io/…

https://kb.isc.org/docs/aa-00768

https://kb.isc.org/docs/bind-…

pull container

没有 laster 标签


docker pull internetsystemsconsortium/bind9:9.16
docker tag  internetsystemsconsortium/bind9:9.16  192.168.99.100:5000/internetsystemsconsortium/bind9:9.16
docker push 192.168.99.100:5000/internetsystemsconsortium/bind9:9.16


Recursive DNS Server


float_ip=192.168.99.114

ip addr add ${float_ip}/32 dev vlan99

img_url='192.168.99.100:5000/internetsystemsconsortium/bind9:9.16'
docker run \
        --name=bind9 \
        --publish ${float_ip}:53:53/udp \
        --publish ${float_ip}:53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        ${img_url}

Authoritative DNS Server

docker run \
        --name=bind9 \
        --restart=always \
        --publish 53:53/udp \
        --publish 53:53/tcp \
        --publish 127.0.0.1:953:953/tcp \
        --volume /etc/bind \
        --volume /var/cache/bind \
        --volume /var/lib/bind \
        --volume /var/log \
        internetsystemsconsortium/bind9:9.16

dns 配置


# 转发 http 申请
forwarders{114.114.114.114}


dns 解析


docker run -d \
-p 53:53 -p 53:53/udp \
-p 10000:10000 \
-v /srv/bind/etc:/etc/bind \
-v /srv/bind/zones:/var/lib/bind \
-v /srv/bind/webmin:/etc/webmin \
-e PASS=newpass \
-e NET=0.0.0.0 \
--name bind --hostname bind \
cosmicq/docker-bind

dns 解析

wsl 配置


# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false

# nameserver 114.114.114.114
# nameserver 192.168.122.118
# nameserver fec0:0:0:ffff::1

nameserver 192.168.99.114

来聊一聊啊

退出移动版