ntadmin / DGND3700v2

Custom firmware for the Netgear DGND3700v2
12 stars 4 forks source link

Get DNS working #4

Closed ntadmin closed 8 years ago

ntadmin commented 8 years ago

Need to test rc_dnsmasq If that works, set rc_dnsrd to sym link to rc_dnsmasq and remove dnsrd fro the Netgear apps collection.

ntadmin commented 8 years ago

DNS working using DNSmasq, so next step done in commit https://github.com/ntadmin/DGND3700v2/commit/750d8f7ba047969bb6ef4931129915538eabb65a

ntadmin commented 8 years ago

DNS doesn't yet get the DNS servers if they are set by the ISP, need to resolve this.

ntadmin commented 8 years ago

Is now configured to either use /etc/resolv.conf (which should be set by existing router code) or the ones specified by the user.

ntadmin commented 8 years ago

Remaining issue/concern: the start up seems to not always work, and sometimes it starts two dnsmasq processes, despite the rc code.

ntadmin commented 8 years ago

Working on the theory that two processes is normal: one DNS, one DHCP. However, currently:

  1. rc_dnsmasq start works
  2. However, it somehow doesn't start on boot up
  3. And dnsmasq seems to stop overnight.
ntadmin commented 8 years ago

Intersting start up efect:

Initially dnsmasq is runing, but once adsl connects and inadyn-mt is started, dnsmasq is stopped!!

Full rc boot sequence ion wiki

ntadmin commented 8 years ago

Hypothesis: a restart is being called and the stop is killing the dnsmasq processes. However, the kill is not complete when it gets onto the start which means that the start fails because the processes are still there. Solution: wait until the processes are dead. This idea in testing now.

ntadmin commented 8 years ago

Hypothesis failed :-(

ntadmin commented 8 years ago

Although the improved logging suggests that it si something to do with a restart not quite working:

Sun Jun 12 22:40:16 BST 2016 [rc_dnsmasq] dnsmasq stopped. Sun Jun 12 22:40:16 BST 2016 [rc_dnsmasq] dnsmasq already started, leaving it alone

ntadmin commented 8 years ago

Stable and working with addition of extra delay between stop and start in restart.