主页 > 知识库 > Centos 6.4 安装dnsmasq的方法

Centos 6.4 安装dnsmasq的方法

热门标签:解决方案 服务器配置 百度竞价点击价格的计算公式 美团 家政服务网络 硅谷的囚徒呼叫中心 电话机器人搭建 外呼系统

1 下载源码

wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.45.tar.gz
cp dnsmasq-2.45.tar.gz /usr/src
tar zxvf dnsmasq-2.45.tar.gz

2 编译安装

cd /usr/src/dnsmasq-2.45
make install
cp dnsmasq.conf.example /etc/dnsmasq.conf
mkdir -p /etc/dnsmasq.d

3 配置

vi /etc/dnsmasq.conf

##########
resolv-file=/etc/dnsmasq.d/dnsmasq.resolv.conf
strict-order
listen-address= 192.168.1.xx
addn-hosts=/etc/dnsmasq.d/dnsmasq.hosts

在/etc/dnsmasq.d目录下新建2个文件

dnsmasq.resolv.conf

nameserver 8.8.8.8

dnsmasq.hosts

ip  domain

4 安装dignslookup

Ubuntu:

sudo apt-get install dnsutils

Fedora / Centos:

yum install bind-utils

标签:南昌 临沂 韶关 邢台 北海 抚州 乌兰察布 防城港

巨人网络通讯声明:本文标题《Centos 6.4 安装dnsmasq的方法》,本文关键词  ;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 收缩
    • 微信客服
    • 微信二维码
    • 电话咨询

    • 400-1100-266