Centos 6.4 安装dnsmasq
2014-04-21 15:34
246 查看
1 下载源码
2 编译安装
3 配置
在/etc/dnsmasq.d目录下新建2个文件
dnsmasq.resolv.conf
dnsmasq.hosts
4 安装dig&nslookup
Ubuntu:
Fedora / Centos:
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
相关文章推荐
- redHat linux下安装hadoop 0.20.2, 并在windows下远程连接此hadoop,开发调试
- linux vi的常用命令
- linux用户登录验证
- linux 中安装VMware Tools(菜鸟的总结)
- linux bind: Address already in use(Z)
- Centos 6.4 安装erlang&rabbitmq
- kali linux使用方法
- Linux下动态共享库加载及使用详解【转】
- linux中断线程化分析
- Linux下find命令的用法
- 解决局域网linux访问外网
- FFTW 在linux中安装以及 没有生成动态库 .so 的解决方法
- linux进程通信(一)--共享内存+信号量,代码示例
- Linux进程间通信源码剖析,共享内存(shmget函数详解)
- error while loading shared libraries: libopencv_highgui.so.2.4 linux
- Red Hat Linux认证都有那些?
- Linux进程间通信源码剖析,共享内存(mmap)
- Linux下find命令的用法
- centos 5.8 升级php5.1至5.3
- Linux进程间通信源码剖析,共享内存(shmget()、shmat()、shmdt()及shmctl())