标签:虚拟机 option 配置 修改 span font file tar 服务
虚拟机A:构建DNS服务器,实现www.sina.com的解析结果为10.20.30.40
1.修改主配置文件
[root@svr7 named]# vim /etc/named.conf
options {
directory "/var/named";
recursion no;
};
zone "tedu.cn" IN {
type master;
file "tedu.cn.zone";
};
zone "qq.com" IN {
type master;
file "qq.com.zone";
};
zone "sina.com" IN {
type master;
file "sina.com.zone";
};
2.建立地址库文件
[root@svr7 named]# cd /var/named/
[root@svr7 named]# cp -p qq.com.zone sina.com.zone
[root@svr7 named]# vim /var/named/sina.com.zone
sina.com. NS svr7
svr7 A 192.168.4.7
www A 10.20.30.40
[root@svr7 named]# systemclt restart named
标签:虚拟机 option 配置 修改 span font file tar 服务
原文地址:https://www.cnblogs.com/PopPop/p/11215395.html