bind dns 配置说明

Bind安装

sudo docker pull sameersbn/bind

sudo docker pull sameersbn/bind


sudo docker run -d --name=bind --dns=192.168.120.2 --publish=192.168.106.55:53:53/udp --publish=192.168.106.55:10000:10000 --volume=/srv/docker/bind:/data/bind --env='ROOT_PASSWORD=1qaz@WSX' sameersbn/bind:latest

访问网址 
https://192.168.106.55:10000/

账号:root
密码:1qaz@WSX


docker start e843fdf6ff5a


如果报错

WARNING: IPv4 forwarding is disabled. Networking will not work.  

vi /usr/lib/sysctl.d/00-system.conf

添加如下代码 net.ipv4.ip_forward=1

systemctl restart network

 

配置Bind

Servers - BIND DNS Server - Create master zone - 填写 Domain name / Network 和 Email address - Create - Return to zone list

进入新创建的Zone - Address - 填写name 和 Address - Return to zone list - Apply configuration

测试连通性

dig @192.168.106.55 a.k8stest.io

你可能感兴趣的:(各种问题)