Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4169 - dnsmasq init script not generating full config on boot #9155

Open
openwrt-bot opened this issue Dec 2, 2021 · 0 comments
Open

FS#4169 - dnsmasq init script not generating full config on boot #9155

openwrt-bot opened this issue Dec 2, 2021 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented Dec 2, 2021

pmelange:

when using the "notinterface" option, the init script generates the config file /tmp/etc/dnsmasq.conf.cfgABCDEF without any "except-interface" directives. The "interface" option is also likewise affected.

This is done only at boot time and not when dnsmasq is restarted.

The commit which introduced this is 2336b94

Would it be better to perform a "ubus -t 15 wait_for network.interface.$X" to allow netifd to finish initializing before the dnsmasq config file is generated?

In order to test, do the following (assuming $DEV is the WAN device which has an IP address of $IPADDR):

  • Add "list notinterface $DEV" to the dhcp config file
  • reboot
  • log back into router
  • nslookup google.com $IPADDR
    ** Here there is a response from dnsmasq, even though the interface should be disabled
  • /etc/init.d/dnsmasq restart
  • nslookup google.com $IPADDR
    ** Here the result is as expected "connection timed out; no servers could be reached"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant