920d4cdee7
gdnsd is an Authoritative-only DNS server. This port tracks the 2.x release. The initial g stands for Geographic, as gdnsd offers a plugin system for geographic (or other sorts of) balancing, redirection, and service-state-conscious failover. If you don't care about that feature, it's still quite good at being a very fast, lean, and resilient authoritative-only server for static DNS data. gdnsd is written in C using libev and pthreads with a focus on high performance, low latency service. It does not offer any form of caching or recursive service, and does not support DNSSEC. WWW: https://github.com/blblack/gdnsd/
45 lines
804 B
Bash
45 lines
804 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: gdnsd
|
|
# REQUIRE: DAEMON
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: FreeBSD shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# gdnsd_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable gdnsd.
|
|
# gdnsd_flags (str): Set to "" by default
|
|
# Extra command line argument flags
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="gdnsd"
|
|
rcvar=gdnsd_enable
|
|
|
|
# set defaults
|
|
load_rc_config $name
|
|
: ${gdnsd_enable:="NO"}
|
|
: ${gdnsd_flags:=""}
|
|
|
|
command="%%PREFIX%%/sbin/gdnsd"
|
|
command_args="start"
|
|
procname=${command}
|
|
reload_cmd="gdnsd_reload"
|
|
configtest_cmd="gdnsd_checkconf"
|
|
extra_commands="reload configtest"
|
|
gdnsd_reload()
|
|
{
|
|
${command} ${gdnsd_flags} reload-zones
|
|
}
|
|
|
|
gdnsd_checkconf()
|
|
{
|
|
${command} ${gdnsd_flags} checkconf
|
|
}
|
|
|
|
run_rc_command "$1"
|
|
|