2014-02-28 18:09:15 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-09-02 11:35:37 +02:00
|
|
|
# Why we tune dnsmasq?
|
|
|
|
# localservice=0 => other hnetd instances can query for local names
|
|
|
|
# boguspriv=0 => allow reverse resolution of RFC1918 w/o local hosts entries
|
|
|
|
|
2014-02-28 18:09:15 +01:00
|
|
|
uci batch <<EOF
|
|
|
|
set dhcp.odhcpd.maindhcp=1
|
2015-02-03 12:14:52 +01:00
|
|
|
set dhcp.@dnsmasq[0].localservice=0
|
2015-09-02 11:35:37 +02:00
|
|
|
set dhcp.@dnsmasq[0].boguspriv=0
|
2014-02-28 18:09:15 +01:00
|
|
|
commit dhcp
|
|
|
|
EOF
|