0514-86177077
9:00-17:00(工作日)
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 安裝erlang&rabbitmq的方法
下一篇:yum只下載軟件不安裝的兩種方法
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8