# Dnsmasq missing options

**URL:** <https://forum.openwrt.org/t/dnsmasq-missing-options/93928>\
**Category:** Installing and Using OpenWrt\
**Created:** [April 13, 2021, 10:39pm UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928 "2021-04-13T22:39:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SharkScout](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sharkscout/32/32884_2.png) [@SharkScout](https://forum.openwrt.org/u/SharkScout)\
**Post date:** [April 13, 2021, 10:39pm UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928/1 "2021-04-13T22:39:16Z")

</div>

When reading [this documentation](https://openwrt.org/docs/guide-user/base-system/dhcp_configuration#multiple_dhcpdns_serverforwarder_instances), I came across several configuration options that are not present in `dnsmasq --help` nor in the [online man page of dnsmasq](https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html). As explained in the doc, there is no CLI man page in openWrt.

2 examples of the missing options are `nonwildcard` and `notinterface`.

So I am guessing the dnsmasq on openWrt is actually a modified version of dnsmasq, specific to openWrt.

How can I access the list of exhaustive options, and their explanation for the processes on openWrt, other than in the [openWrt documentation](https://openwrt.org/docs/guide-user/base-system/dhcp)? I have developed a habit of checking CLI usage with `--help` or `man` because I know wikis can sometimes get out of date, hence why I am asking,

---

<div class="post-metadata">

**Author:** ![stangri](https://forum.openwrt.org/user_avatar/forum.openwrt.org/stangri/32/58_2.png) [@stangri](https://forum.openwrt.org/u/stangri)\
**Post date:** [April 14, 2021, 12:59am UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928/2 "2021-04-14T00:59:53Z")

</div>

With dnsmasq 2.84 on 21.02-snapshot there's a following option: `-I, --except-interface=<interface> Specify interface(s) NOT to listen on.`

If it's not exposed thru uci currently, you can:

1. Send PR to have it supported in uci
2. Modify `/etc/init.d/dnsmasq` to explicitly add these options

If you have a look at `/etc/init.d/dnsmasq`, the either change should be obvious.

---

<div class="post-metadata">

**Author:** ![dl12345](https://forum.openwrt.org/letter_avatar/dl12345/32/5_5575768a8748004e209b776fc1b2916d.png) [@dl12345](https://forum.openwrt.org/u/dl12345)\
**Post date:** [April 14, 2021, 1:26am UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928/3 "2021-04-14T01:26:51Z")

</div>

You can put the options in `/etc/dnsmasq.conf`

---

<div class="post-metadata">

**Author:** ![mpa](https://forum.openwrt.org/letter_avatar/mpa/32/5_5575768a8748004e209b776fc1b2916d.png) [@mpa](https://forum.openwrt.org/u/mpa)\
**Post date:** [April 18, 2021, 2:27pm UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928/4 "2021-04-18T14:27:22Z")

</div>

> [@SharkScout](#):
>
> How can I access the list of exhaustive options, and their explanation for the processes on openWrt,

Search for the UCI option in the dnsmasq start script, `/etc/init.d/dnsmasq`, where you can find its translation to the dnsmasq CLI option. They do not necessarily resemble each other. For example, `nonwildcard` maps to `--bind-dynamic`.

---

<div class="post-metadata">

**Author:** ![SharkScout](https://forum.openwrt.org/user_avatar/forum.openwrt.org/sharkscout/32/32884_2.png) [@SharkScout](https://forum.openwrt.org/u/SharkScout)\
**Post date:** [April 18, 2021, 3:26pm UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928/5 "2021-04-18T15:26:05Z")

</div>

Thanks, that's exactly what I needed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [April 28, 2021, 3:26pm UTC](https://forum.openwrt.org/t/dnsmasq-missing-options/93928/6 "2021-04-28T15:26:27Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
