dns bind记录

自建DNS服务, 使用的工具是bind, 当然也有其他更轻量的工具
yum -y install bind

/etc/named.conf

监听端口和ip修改 默认监听127.0.0.1 其他机器无法访问

/var/named/xxx.com.zone文件

格式要求很高,否则启动会报错
SOA为第一个记录, 红框中的实际是个邮箱地址, 可以随便填,但是不能没有 ()中可以使用1W 1H 1D等缩写
不能以空格 TAB开头
很多地方是以.结尾的 这个.不能少 但使用缩写@ www时不加.

named restart
systemctl restart named.service
bind9 restart

其他参考
bind9 bind10?
bind英文完整手册
mooc视频讲的不错

posted @ 2020-01-21 16:25  funny_coding  阅读(177)  评论(0编辑  收藏  举报
build beautiful things, share happiness