logger -t "(dnsmasq.postconf)" "Updating $CONFIG for unbound....." # unbound_manager
if [ -n "$(pidof unbound)" ];then
pc_delete "servers-file" $CONFIG
pc_delete "no-negcache" $CONFIG
pc_append "dhcp-option=lan,6,192.168.44.4,0.0.0.0" $CONFIG
pc_append "dhcp-option=lan,42,192.168.44.4,0.0.0.0" $CONFIG
#pc_delete "domain-needed" $CONFIG
#pc_delete "bogus-priv" $CONFIG
# By design, if GUI DNSSEC ENABLED then attempt to modify 'cache-size=0' results in dnsmasq start-up fail loop
# dnsmasq[15203]: cannot reduce cache size from default when DNSSEC enabled
# dnsmasq[15203]: FAILED to start up
if [ -n "$(grep "^dnssec" $CONFIG)" ];then
pc_delete "dnssec" $CONFIG
logger -t "(dnsmasq.postconf)" "**Warning: Removing 'dnssec' directive from 'dnsmasq' to allow DISABLE cache (set 'cache-size=0')"
fi
pc_replace "cache-size=1500" "cache-size=0" $CONFIG
UNBOUNDLISTENADDR="127.0.0.1#53535"