dnsmasq.conf - money168/cobbler GitHub Wiki
mv /etc/dnsmasq.conf /etc/dnsmasq.conf.bk
vim /etc/dnsmasq.conf
-—-
-
DNS Setting
port=53
domain-needed
bogus-priv
#bogus-nxdomain=114.114.114.114
resolv-file=/etc/dnsmasq.d/upstream_dns.conf
resolv-file=/etc/dnsmasq.resolv.conf
resolv-file=/etc/resolv2.conf
strict-order
no-resolv
no-poll
server=/localnet/192.168.1.1
server=/google.com/8.8.8.8
server=/cn/114.114.114.114
server=/taobao.com/114.114.114.114
server=/taobaocdn.com/114.114.114.114
#server=/3.168.192.in-addr.arpa/192.168.1.3
local=/localnet/
local=/sample.com/
address=/sample.com/127.0.0.1
address=/baidu.com.com/123.123.123.123
address=/ad.youku.com/127.0.0.1
address=/ad.iqiyi.com/127.0.0.1
listen-address=127.0.0.1,192.168.1.1
no-hosts
addn-hosts=/etc/hosts
addn-hosts=/etc/dnsmasq.hosts
expand-hosts
domain=sample.com
conf-dir=/etc/dnsmasq.d
cache-size=500
log-facility=/var/log/dnsmasq.log
log-queries
log-dhcp
log-async=20
#DHCP Setting
#domain=sample.com,192.168.2.0/24
#domain=sample.com,192.68.3.100,192.168.3.200
#dhcp-range=192.168.0.50,192.168.0.150,12h
#dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h
#dhcp-range=lan,192.168.1.100,192.168.1.200
#dhcp-range=wifi,192.168.2.100,192.168.2.200
dhcp-option=lan,3,192.168.1.50
dhcp-option=wifi,3,192.168.2.50
dhcp-option=lan,6,192.168.1.10
dhcp-option=wifi,6,192.168.2.10
#ipset=/yahoo.com/google.com/vpn,search
- server=10.1.2.3@eth1
- [email protected]#55
#interface=
#except-interface=
#no-dhcp-interface=
#bind-interfaces
-—-
dnsmasq —test