Allow to set custom ports for upstream dns servers

,

Bumping this as I’ve also run into a need for this:

Sure, a custom template fragment works, but it’s strange that even setting the config property directly doesn’t work–if I do config setprop dns NameServers 127.0.0.1#5335 and then expand the template, I get:

expand-template /etc/dnsmasq.conf 
ERROR in /etc/e-smith/templates//etc/dnsmasq.conf/20dns: Program fragment delivered error <<Can't call method "within" on an undefined value at /etc/e-smith/templates//etc/dnsmasq.conf/20dns line 18.>> at template line 8
ERROR: Template processing failed for //etc/dnsmasq.conf: 1 fragment generated errors
 at /sbin/e-smith/expand-template line 45.