dnsdist: add package

Maintainer: me
Compile tested: armv7l, OpenWRT SDK
Run tested: armv7l  Linksys WRT1900ACS, OpenWrt SNAPSHOT, r9987-655fff1571 -
confirmed dnsdist links correctly against dependencies and doesn't experience
errors at run-time when enabling features.

Description:
dnsdist is a highly DNS-, DoS- and abuse-aware loadbalancer. Its goal in life is
to route traffic to the best server, delivering top performance to legitimate
users while shunting or blocking abusive traffic.

dnsdist is dynamic, its configuration language is Lua and it can be changed at
runtime, and its statistics can be queried from a console-like interface or an
HTTP API.

https://dnsdist.org/

Closes: PowerDNS/pdns#3294

Signed-off-by: James Taylor <james@jtaylor.id.au>
This commit is contained in:
James Taylor
2019-05-20 00:25:20 +10:00
parent bdec22047e
commit 5ee9364eaf
5 changed files with 129 additions and 0 deletions

View File

View File

@@ -0,0 +1,2 @@
config 'dnsdist' 'general'
option enabled '0'

View File

@@ -0,0 +1,20 @@
#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
start_service() {
config_load dnsdist
local cfg=general
local enabled
config_get_bool enabled "$cfg" 'enabled' 1
[ $enabled -gt 0 ] || return 1
procd_open_instance
procd_set_param command dnsdist --supervised -C /etc/dnsdist.conf
procd_set_param file /etc/dnsdist.conf
procd_set_param respawn
procd_close_instance
}