luci: luci-mod-network: Missing dnsmasq option "listen_address=" in "Network → DHCP and DNS → General settings" section

Steps to reproduce:

“Network → DHCP and DNS → General settings”

  1. go to: “Network → DHCP and DNS → General settings” settings tab
  2. Dnsmasq option “listen_address=” is not configurable via GUI.
  3. Manual configuration via /etc/config/dhcp does work (list listen_address ‘XXX.xxx.XXX.xxx’), so the function is present just not present as an option in luci.

image

Expected behavior:

Optional input form in luci to enter “listen_address” list to /etc/config/dhcp via GUI.

Additional Information:

  • Not to be confused with dnsmasq “list address” option. That is a completely different function.

  • It’s a list on witch IPs to listen on, so multiple entries should be possible (configured as a “list” not as an “option”).

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.2'
DISTRIB_REVISION='r23630-842932a63d'
DISTRIB_TARGET='ipq807x/generic'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt 23.05.2 r23630-842932a63d'
DISTRIB_TAINTS=''

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

I have tested it and it works in combination with interface option…

The manpage says the following:

-a, --listen-address=<ipaddr> Listen on the given IP address(es). Both --interface and --listen-address options may be given, in which case the set of both interfaces and addresses is used. Note that if no --interface option is given, but --listen-address is, dnsmasq will not automatically listen on the loopback interface. To achieve this, its IP address, 127.0.0.1, must be explicitly given as a --listen-address option.

I’ll take a look at this.