CentOS 7.1配置dnsmasq

2025-05-11 07:09:11

1、Cent OS 7.1上面版本网络配置,请按以下图示进行操作(如果网络已经配置好,可以直接进入第二步):

CentOS 7.1配置dnsmasqCentOS 7.1配置dnsmasqCentOS 7.1配置dnsmasq

2、防火墙洧粽袄淖配置使用如下命令:systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁廛摄斟腓止firewall开机启动也可以不用关闭防火墙,单独打开53端口执行效果如图所示:

CentOS 7.1配置dnsmasq

4、使用yum安装dnsmasq执行如下命令组:sudo yum install dnsmasq执行结果:

CentOS 7.1配置dnsmasqCentOS 7.1配置dnsmasqCentOS 7.1配置dnsmasqCentOS 7.1配置dnsmasq

7、增加dnsmasq.hosts文件

CentOS 7.1配置dnsmasq

9、启动服务service dnsmasq start

10、检查服务是否正常运行执行命令:netstat -antp

CentOS 7.1配置dnsmasq
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢