国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > CentOS > 正文

Centos 6.4 安裝dnsmasq的方法

2020-06-21 12:38:45
字體:
來源:轉載
供稿:網友

1 下載源碼

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

2 編譯安裝

cd /usr/src/dnsmasq-2.45make installcp dnsmasq.conf.example /etc/dnsmasq.confmkdir -p /etc/dnsmasq.d

3 配置

vi /etc/dnsmasq.conf##########resolv-file=/etc/dnsmasq.d/dnsmasq.resolv.confstrict-orderlisten-address= 192.168.1.xxaddn-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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 琼中| 佛冈县| 孝昌县| 临西县| 龙井市| 美姑县| 江达县| 弥勒县| 仁寿县| 新泰市| 仁寿县| 汪清县| 会宁县| 湟中县| 西平县| 淮南市| 镇康县| 敦化市| 周宁县| 宁强县| 班玛县| 防城港市| 乌兰浩特市| 闸北区| 永定县| 文成县| 图们市| 府谷县| 崇阳县| 长春市| 丘北县| 新民市| 陇西县| 肇东市| 辉县市| 名山县| 澄城县| 湟中县| 安陆市| 专栏| 灵武市|