Dnsmasq .lan domain while still using knot resolver

With @eman’s change, you don’t need to rewrite the startup script anymore.

This is what my full /tmp/kresd.config looks like (notice the custom config gets added to the end):

--Automatically generated file; DO NOT EDIT
modules = {
  'hints'
  , 'policy'
  , 'stats'
  , predict = {
        window = 30 -- 30 minutes sampling window
      , period = 24*(60/30) -- track last 24 hours
  }
}
hints.config('/etc/hosts')
net.bufsize(4096)
net.ipv4=true
net.ipv6=true
cache.open(20*MB)
cache.clear()

--- Included custom configuration file from: ---
--- /etc/kresd/custom.conf 
local lan_rule = policy.add(policy.suffix(policy.FORWARD('127.0.0.1@54'), policy.todnames({'lan','in-addr.arpa'})))
policy.del(lan_rule.id)
table.insert(policy.rules, 1, lan_rule)

The top comment has the setup instructions