Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#4900 closed enhancement (fixed)

additional dnsmasq configuration parameters

Reported by: jhalfmoon@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: dns dhcp dnsmasq Cc:


This patch adds extra configurable parameters to UCI for dnsmasq. Thes parameters are useful when one wants to run dnsmasq exclusively on one or multiple definded interfaces, instead of the default of listening on all interfaces. The following two configuration options are added:

dhcp.dnsmasq.nonwildcard -
When true, this boolean forces dnsmasq to not bind to but to individual interfaces. It is linked to the following command line parameter:
-z, --bind-interfaces Bind only to interfaces in use.
On systems which support it, dnsmasq binds the wildcard address, even when it is listening on only some interfaces. It then discards requests that it shouldn't reply to. This has the advantage of working even when interfaces come and go and change address. This option forces dnsmasq to really bind only the interfaces it is listening on. About the only time when this is useful is when running another nameserver (or another instance of dnsmasq) on the same machine. Setting this option also enables multiple instances of dnsmasq which provide DHCP service to run in the same machine.

dhcp.dnsmasq.interfaces -
This string defines to which interfaces dnsmasq should bind. It is linked to the following command line parameter:
-i, --interface=interface Listen only on the specified interface(s).
Dnsmasq automatically adds the loopback (local) interface to the list of interfaces to use when the --interface option is used. If no --interface or --listen-address options are given dnsmasq listens on all available interfaces except any given in --except-interface options. IP alias interfaces (eg "eth1:0") cannot be used with --interface or --except-interface options, use --listen-address instead.

Attachments (1)

dnsmasq.patch (948 bytes) - added by jhalfmoon@… 8 years ago.
patch for dnsmasq/files

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by jhalfmoon@…

patch for dnsmasq/files

comment:1 Changed 8 years ago by jow

  • Milestone set to Kamikaze
  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to Trunk

comitted in r15172 and rebased for current dnsmasq scripts - thanks!

comment:2 Changed 3 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.