Home | Mirror | SearchITEYE 博客 | OSChina 博客 | 51CTO 博客

第 36 章 dnsmasq

目錄

36.1. Install
36.1.1. CentOS / Redhat
36.1.2. Debian / Ubuntu
36.1.3. Firewall 設置
36.2. /etc/dnsmasq.conf
36.3. dnsmasq.resolv.conf
36.4. dnsmasq.hosts
36.5. /etc/dnsmasq.d/dnsmasq.server.conf
36.6. /etc/dnsmasq.d/dnsmasq.address.conf
36.6.1. 域名劫持
36.7. FAQ

36.1. Install

36.1.1. CentOS / Redhat

yum -y install dnsmasq
			

36.1.2. Debian / Ubuntu

apt-get install dnsmasq
			

36.1.3. Firewall 設置

iptables -A INPUT -p udp -m udp –dport 53 -j ACCEPT