# dnsmasq config, for a complete example, see:
# http://oss.segetech.com/intra/srv/dnsmasq.conf
# 配置文档
# https://e-mailky.github.io/2018-07-14-dnsmasq
# log all dns queries
log-queries
# dont use hosts nameservers
no-resolv
# use cloudflare as default nameservers, prefer 1^4
server=223.5.5.5
server=8.8.8.8
strict-order
# serve all .company queries using a specific nameserver
server=/company/10.0.0.1
# explicitly define host-ip mappings
address=/myhost.company/10.0.0.2
# 国内指定DNS
# server=/cn/114.114.114.114
# server=/taobao.com/114.114.114.114
# server=/taobaocdn.com/114.114.114.114
# 国外指定DNS
# server=/google.com/223.5.5.5
######################## dhcp ####################################
# dhcp逻辑文件, 修改会自动重载
dhcp-hostsdir=/etc/dnsmasq/dhcp-hosts.d
# Dynamic range of IPs to make available to LAN pc
dhcp-range=10.32.9.2,10.32.9.254,255.255.240.0,12h
# If you’d like to have dnsmasq assign static IPs, bind the LAN computer's
# NIC MAC address:
dhcp-host=aa:bb:cc:dd:ee:ff,192.168.111.50