Fork of dnsmasq that uses sysrepo to store its configuration, which makes it remotely manageble via NETCONF.
The purpose of this project is to demonstrate how sysrepo & Netopeer 2 can be used to make an existing Linux application remotely manageable via NECTONF in a few hours.
Only following features of dnsmasq have been integrated with sysrepo so far:
- username & groupname dnsmasq will run as,
- dns-server: enabling/disabling the server, configuring the port that DNS serevr is bound to,
- dhcp-server: enabling/disabling the server, configuring list of DHCP pools and their lease-time.
See the YANG model or full diff of the integration for more information.
Asciinema-recored demo of this integration is available here: http://www.sysrepo.org/dnsmasq-demo
To use this integration, follow hese steps:
-
Build & install dnsmasq (
make && make install
). -
Initialize dnsmasq YANG model in sysrepo:
sysrepoctl -i -g /etc/sysrepo/yang/sysrepo-dnsmasq\@2016-01-22.yang
- Import initial dnsmasq configuration into startup datastore:
sysrepocfg --import=yang/dnsmasq.xml --datastore=startup sysrepo-dnsmasq
Note: Due to the limitiations of this integration, dnsmasq needs to be always running under root priviledges. The settings related to this are already part of the intial configuration imported in step 4).