加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 创业 > C语言 > 正文

DNSmasq 轻量级DNS服务

发布时间:2020-12-15 00:15:44 所属栏目:C语言 来源:网络整理
导读:yum 安装 yum install dnsmasq 编译安装 wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.45.tar.gztar –xvzf dnsmasq-2.45.tar.gzcd dnsmasq-2.45make make installcp dnsmasq.conf.example /etc/dnsmasq.conf 简单配置 vim /etc/dnsmasq.conf 启动

yum 安装

yum install dnsmasq

编译安装

wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.45.tar.gz
tar –xvzf dnsmasq-2.45.tar.gz
cd dnsmasq-2.45
make && make install
cp dnsmasq.conf.example  /etc/dnsmasq.conf

简单配置

vim /etc/dnsmasq.conf

启动

systemctl start dnsmasq     #port:53

追加hosts

---> /etc/hosts

dns客户端设置

编辑/etc/resolv.conf 将dnsmasq 服务监听地址写上

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读