使用dnsmasq搭建dns服務器

1安裝dnsmasq yum install -y dnsmasqweb 2配置配置文件vim /etc/dnsmasq.conf resolv-file=/etc/resolv.dnsmasq.conf strict-order #dnsmasq會從resolv.dnsmasq.conf這個文件中找上游dns服務器。vim listen-address=127.0.0.1 #讓DNS只對本機有效
相關文章
相關標籤/搜索