小米路由器默认 dnsmasq.conf

在小米路由器上调用 /etc/init.d/dnsmasq startrestart 时,会把默认的 /var/etc/dnsmasq.conf 删除。假如配置错误,想要恢复默认的配置,可以使用以下备份:

# auto-generated config file from /etc/config/dhcp
conf-dir=/tmp/etc/dnsmasq.d/
address=/workforme.stat.localdomain/127.0.0.1
dhcp-authoritative
domain-needed
no-negcache
clear-on-reload
localise-queries
bogus-priv
expand-hosts
all-servers
dhcp-client-update
neg-ttl=300
max-ttl=300
max-cache-ttl=1800
cache-size=1000
dns-forward-max=300
server=/lan/
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
local-ttl=0
addn-hosts=/tmp/hosts
intercept-ip-address=192.168.31.1
dhcp-script=/lib/dnsmasq/dhcp_lease




dhcp-range=lan,192.168.31.5,192.168.31.254,255.255.255.0,12h
dhcp-option-force=12,MiWiFi-R1D-srv
dhcp-option-force=43,miwifi-R1D-2.19.32
no-dhcp-interface=eth0.2
dhcp-range=ready,169.254.29.10,169.254.29.29,255.255.255.0,5m
dhcp-option-force=12,MiWiFi-R1D-srv
dhcp-option-force=43,miwifi-R1D-2.19.32


address=/XiaoQiang/192.168.31.1
ptr-record=1.31.168.192.in-addr.arpa,XiaoQiang

以上。

comments powered by Disqus