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

enhancement: use the OLSR nameservice plugin to SIGHUP dnsmasq #618

Open
pmelange opened this issue Nov 13, 2018 · 1 comment
Open

enhancement: use the OLSR nameservice plugin to SIGHUP dnsmasq #618

pmelange opened this issue Nov 13, 2018 · 1 comment

Comments

@pmelange
Copy link
Contributor

Currently there is a cron job which sendd a HUP to dnsmasq every 5 minutes. We do this so that we can add all the hostnames which are collected via the nameservice plugin for OLSR.

There is an option for the nameservice plugin to send a HUP directly to a PID stored in a pidfile. We can also set the "filewrite-interval" interval to something a bit longer than the default of 5 seconds (maybe 30 seconds)

The problem is that the name of the pid file is /var/run/dnsmasq/dnsmasq.[cfgNR].pid. Unfortunately the cfgNR is something cryptic like cfg01411c. If we give the dnsmasq section in /etc/config/dhcp a name (for example "freifunk") then the pidfile will have the name dnsmasq.freifunk.pid.

olsrd nameservice plugin documentation: https://github.com/OLSR/olsrd/blob/master/lib/nameservice/README_NAMESERVICE

So, what are your opinions? Would we like to have this enhancement? The changes would be:

  • name the dnsmasq section in /etc/config/dhcp to "freifunk"
  • add two PlParams to the nameservice plugin in /etc/config/olsr[6]
    • "sighup-pid-file" "/var/run/dnsmasq/dnsmasq.freifunk.pid"
    • "filewrite-interval" "30"
  • remove the cron job
@SvenRoederer
Copy link
Contributor

This is a issue which deals with the "2nd part" mentioned in freifunk-berlin/firmware-packages#91 (comment)

@SvenRoederer SvenRoederer added this to the Hedy-1.1.0 milestone Nov 19, 2018
pmelange referenced this issue in freifunk-berlin/firmware-packages Jan 11, 2019
this seems to be a more elegant way to have dnsmasq reread the hosts-file
SvenRoederer added a commit to SvenRoederer/freifunk-berlin-firmware that referenced this issue Dec 1, 2020
22a5a22 quagga: update GCC10 patch
3e6059f quagga: fix dependency to libcares
4f2528a opennds: Release 7.0.1
52be301 Merge pull request freifunk-berlin#625 from bluewavenet/master
068a061 Merge pull request freifunk-berlin#619 from neheb/qg
330a0cc Merge pull request freifunk-berlin#618 from TDT-AG/pr20201009/quagga-libcares
SvenRoederer added a commit to SvenRoederer/freifunk-berlin-firmware that referenced this issue Dec 1, 2020
3e6059f quagga: fix dependency to libcares
330a0cc Merge pull request freifunk-berlin#618 from TDT-AG/pr20201009/quagga-libcares
SvenRoederer added a commit to SvenRoederer/freifunk-berlin-firmware that referenced this issue Dec 1, 2020
22a5a22 quagga: update GCC10 patch
3e6059f quagga: fix dependency to libcares
4f2528a opennds: Release 7.0.1
52be301 Merge pull request freifunk-berlin#625 from bluewavenet/master
068a061 Merge pull request freifunk-berlin#619 from neheb/qg
330a0cc Merge pull request freifunk-berlin#618 from TDT-AG/pr20201009/quagga-libcares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants