question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

luci-mod-network: add support for multiple dnsmasq sections

See original GitHub issue

In /etc/config/dhcp you can configure multiple config dnsmasq sections in cases where you need different configurations for dnsmasq on different interfaces/vlans, e.g. config dnsmasq 'dns_vlan1' and config dnsmasq 'dns_vlan2'. Currently, luci-mod-network will only show the first config dnsmasq section. This should probably be implemented as several tabs, one for each section.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thekadcommented, May 5, 2022

The above should be said many times, I was also unaware that you could control many instances of dnsmasq with stock openwrt (although with some effort) thank you so much @treysis for the tip 😃 The current use case is (probably not that uncommon) having 2 networks one unrestricted and one restricted with e.g. opendns. If you set the DNS servers per interface it appears to work however all of the servers end up in the same file /tmp/resolv.conf.auto and used by the single instance of dnsmasq. This means your DNS queries will be randomly answered by restricted/unrestricted DNS Servers. The solution is to spawn multiple dnsmasq and point them to different (static) resolv.conf files, which this little piece of buried info makes possible.

1reaction
treysiscommented, Aug 11, 2020

Ok I just noticed this has been there for quite some time in some preliminary form…you just have to scroll down on the configuration page 😅 However, this only works for already created sections. It’s not possible to create multiple instances from LuCi, so this still needs some work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where in LUCI can one add custom lines for dnsmasq
I've got two FTTC lines to my home (business & personal) and have two gateways. All devices in the home are on the...
Read more >
dnsmasq - ArchWiki
dnsmasq provides a DNS server, a DHCP server with support for DHCPv6 and PXE, and a TFTP server. It is designed to be...
Read more >
Man page of DNSMASQ
The dnsmasq DHCP server supports static address assignments and multiple networks. It automatically sends a sensible default set of DHCP ...
Read more >
1.4.8 Configuring Dnsmasq to Support PXE Clients
To configure dnsmasq for PXE client installation requests: Install the dnsmasq package. # yum install dnsmasq. Edit /etc/dnsmasq.conf ...
Read more >
dnsmasq - A lightweight DHCP and caching DNS server.
The dnsmasq DHCP server supports static address assignments and multiple ... -E, --expand-hosts Add the domain to simple names (without a period) in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found