luci-mod-network: add support for multiple dnsmasq sections
See original GitHub issueIn /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:
- Created 4 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.