Skip to content

Commit 59688c6

Browse files
committed
luci-mod-network: Add flag for address_as_local
'Addresses' option entries in the general tab of DHCP and DNS settings are sometimes (I'm not sure about the exact conditions) passed to upstream resolver, bypassing local resolution. A workaround for a small list of domains is to add them to 'Resolve these locally' option, but this is very tedious to do, and dnsmasq limits it to 1024 characters. openwrt/openwrt#18610 adds behaviour to add addresses to the local resolution list automatically, and this commit adds a flag to LuCI to control that. Signed-off-by: Marko Zajc <[email protected]>
1 parent 545de2a commit 59688c6

File tree

1 file changed

+5
-0
lines changed
  • modules/luci-mod-network/htdocs/luci-static/resources/view/network

1 file changed

+5
-0
lines changed

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@ return view.extend({
323323
o.optional = true;
324324
o.datatype = 'uinteger';
325325
o.placeholder = 150;
326+
327+
o = s.taboption('general', form.Flag, 'address_as_local',
328+
_('Resolve addresses locally'),
329+
_('Never send queries for FQDNs in the Address option to an upstream resolver.'));
330+
o.optional = true;
326331
// End general
327332

328333
// Begin devices

0 commit comments

Comments
 (0)