Skip to content

jochenberger/dnsmasq-sysrepo

 
 

Repository files navigation

YANG via sysrepo

dnsmasq-sysrepo - NETCONF enabled dnsmasq fork

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.

Integration

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.

Demo

Asciinema-recored demo of this integration is available here: http://www.sysrepo.org/dnsmasq-demo

Installation

To use this integration, follow hese steps:

  1. Install sysrepo.

  2. Build & install dnsmasq (make && make install).

  3. Initialize dnsmasq YANG model in sysrepo:

sysrepoctl -i -g /etc/sysrepo/yang/sysrepo-dnsmasq\@2016-01-22.yang
  1. 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).

About

NETCONF enabled dnsmasq fork

Resources

License

GPL-2.0, GPL-3.0 licenses found

Licenses found

GPL-2.0
COPYING
GPL-3.0
COPYING-v3

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.3%
  • Perl 3.0%
  • HTML 1.6%
  • Shell 1.6%
  • Makefile 0.7%
  • Python 0.5%
  • Other 0.3%