UPDATED: Please see this thread for continued findings about this issue: [h t t p : / / tinyurl.com / cxyfa6b ]
The problem is that users no longer have the ability to specify custom options for DNS, WAN, Gateway, etc for an interface using the custom options in DHCP settings. What was working in versions prior to v107 is now broken.
Here is the deal.
- Version update of dnsmasq to 2.66test16 in v107 and v108 changed the way that dnsmasq parses the conf file. In the older version it allowed you to specify something at the top of the conf file and then over-ride that option by re-specifying it near the bottom of the file (custom config options placement is at the bottom). This change has broken the ability to make manual changes to dhcp options that already automatically get specified by the Basic->Network->Lan options in tomato when "Use Internal DNS" is unchecked.
There are several easy fixes…and shibby would need to do only ONE of these:
- Change the placement of the custom config options to append to the TOP of the .conf file instead of the bottom. This would give the user the ability to override any setting by specifying it first using the custom config. Since apparently dnsmasq ignores settings that have already been set higher up (this would need to be tested)
- Change the UI to show the entire dnsmasq.conf as it will be written according to the options chosen, and give the user a check box that says, over-ride dnsmasq.conf with the contents as show here in this text box.
Again, guys, I worked on this for over an hour and if I manually edited the dnsmasq.conf file and removed the line no-dhcp-interface=br1 and ran dnsmasq manually it worked fine. Or if I enabled DHCP for the interface and manually edited the dnsmasq.conf and removed the auto generated conflicting configuration information at the top of the .conf file…again, worked fine.
- Add an option to specify DNS information for each interface that has DHCP enabled.
The custom config I am loading is:
If Basic->Network->LAN , DHCP is disabled for the interface
interface=br1 dhcp-option=br1,6,126.96.36.199 dhcp-range=br1,10.0.0.2,10.0.0.254,255.255.255.0,60m dhcp-option=br1,3,10.0.0.1 dhcp-option=br1,44,10.0.0.1
If Basic->Network->LAN, DHCP is enabled dhcp for the interface
dhcp-option=br1,6,188.8.131.52 dhcp-range=br1,10.0.0.2,10.0.0.254,255.255.255.0,60m dhcp-option=br1,3,10.0.0.1 dhcp-option=br1,44,10.0.0.1
These settings are designed to override the setting specified in the Basic->Network->LAN section for the br1 interface as a custom DNS setting is required and the GUI does not allow you to specify that option. This worked fine in v101 but is now broken in v107 and v108 due to the fact that the new version of dnsmasq doesn't allow the custom setting to override the settings put into the .conf file by tomato by default (which is incorrect).
PLEASE go to the link at the top of this thread because there is much more detailed information there as well as other possible solutions. I had to break up the URL b/c this forum doesn't allow posting links to prevent spam I guess.