Skip to content

Instantly share code, notes, and snippets.

@diresi
Created January 8, 2021 14:02
Show Gist options
  • Save diresi/326f17b6a886a7b14e08dd04685e157f to your computer and use it in GitHub Desktop.
Save diresi/326f17b6a886a7b14e08dd04685e157f to your computer and use it in GitHub Desktop.
# it's all about the " --addn-hosts /tmp/dhcpd_hostlist" parameter
# we'd just need to find ways to reload dnsmasq if dhcp leases change ...
...
else
/usr/sbin/dnsmasq --except-interface=lo -r $resolv_file -P 4096 $opt_argv --log-facility /tmp/dnsmasq.log --log-queries --addn-hosts /tmp/dhcpd_hostlist
fi
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment