欢迎来到万象站长学堂!

RedHat/Centos

当前位置: 主页 > 操作系统 > RedHat/Centos > 文章列表

Centos 6.4 安装dnsmasq的方法

时间:2026-11-16 16:19:55|栏目:RedHat/Centos|点击:0 次

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 安装dig&nslookup

Ubuntu:

sudo apt-get install dnsutils

Fedora / Centos:

yum install bind-utils

上一篇:Centos 6.4 安装erlang&rabbitmq的方法

栏    目:RedHat/Centos

下一篇:yum只下载软件不安装的两种方法

本文标题:Centos 6.4 安装dnsmasq的方法

本文地址:https://zhanzhang.eapis.site/html/23706.html

您可能感兴趣的文章

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:120507403 | 邮箱:120507403@qq.com

Copyright © 2002-2026 万象站长学堂 版权所有沪ICP备2021023961号-8 粤公网安备 13010202004186