b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # Why we tune dnsmasq? | ||||
4 | # localservice=0 => other hnetd instances can query for local names | ||||
5 | # boguspriv=0 => allow reverse resolution of RFC1918 w/o local hosts entries | ||||
6 | |||||
7 | uci batch <<EOF | ||||
8 | set dhcp.odhcpd.maindhcp=1 | ||||
9 | set dhcp.@dnsmasq[0].localservice=0 | ||||
10 | set dhcp.@dnsmasq[0].boguspriv=0 | ||||
11 | commit dhcp | ||||
12 | EOF |