最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

centos+dnsmasq打造DNS緩存服務(wù)器加速上網(wǎng)

2021-11-01 21:31 作者:是喻先森  | 我要投稿

安裝centos部分


查看是否有ip

ip addr show?


修改inet的配置

vi /etc/sysconfig/network-scripts/ifcfg-ens192


查看ient的配置發(fā)現(xiàn)網(wǎng)卡沒有打開,按下鍵盤 i 鍵后修改,將no改為yes。修改完成按下 esc 鍵,然后輸入 :wq? 保存退出。??


輸入指令? service network restart? ?重新啟動網(wǎng)絡(luò)服務(wù)


安裝

yum -y install dnsmasq

配置

vi /etc/dnsmasq.conf


添加

resolv-file=/etc/resolv.dnsmasq.conf

listen-address=192.168.1.4,127.0.0.1

strict-order

cache-size=10240


編輯resolv.dnsmasq.conf


vi /etc/resolv.dnsmasq.conf


寫入?

nameserver 114.114.114.114

nameserver 8.8.8.8


關(guān)閉防火墻

systemctl stop firewalld.service

systemctl disable firewalld.service



重啟

systemctl restart dnsmasq

設(shè)置為開機(jī)自啟動

systemctl enable dnsmasq

啟動 dnsmasq 服務(wù)

systemctl start dnsmasq

重啟

reboot


安裝dig

yum install bind-utils

測試

dig 網(wǎng)址


centos+dnsmasq打造DNS緩存服務(wù)器加速上網(wǎng)的評論 (共 條)

分享到微博請遵守國家法律
盐亭县| 赤水市| 洱源县| 清水河县| 潢川县| 巨野县| 丽江市| 宜都市| 和平区| 江川县| 盘锦市| 大宁县| 湘潭市| 德兴市| 徐闻县| 寿光市| 乌兰县| 双城市| 鹰潭市| 拜城县| 广昌县| 扎鲁特旗| 五家渠市| 昭觉县| 开远市| 洛川县| 松溪县| 武穴市| 迁西县| 黔南| 云梦县| 出国| 镇康县| 思茅市| 巨野县| 马关县| 宁蒗| 阿合奇县| 饶阳县| 武隆县| 五莲县|