Dnsmasq 提供 DNS 緩存和 DHCP 服務(wù)功能
在珠山等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站設(shè)計(jì)、成都做網(wǎng)站 網(wǎng)站設(shè)計(jì)制作定制開(kāi)發(fā),公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),營(yíng)銷型網(wǎng)站建設(shè),外貿(mào)營(yíng)銷網(wǎng)站建設(shè),珠山網(wǎng)站建設(shè)費(fèi)用合理。
yum install -y dnsmasq
systemctl enable dnsmasq
# vi /etc/dnsmasq.conf
listen-address=192.168.1.132,127.0.0.1
## 轉(zhuǎn)發(fā)域名解析
server=/cn/114.114.114.114
server=/taobao.com/114.114.114.114
## 指定域名解析
address=/ad.iqiyi.com/127.0.0.1
address=/ad.iqiyi.com/127.0.0.1
## DHCP設(shè)定
dhcp-range=192.168.1.50,192.168.1.150,48h
dhcp-host=00:0C:29:5E:F2:6F,192.168.1.201,os02
dhcp-host=00:0C:29:15:63:CF,192.168.1.202,os03
local=/ic.lo/
domain=ic.lo
dhcp-option=3,192.168.0.1
# restart service
systemctl restart dnsmasq
dig www.baidu.com