2011-10-08 00:37:02 +02:00
|
|
|
#!@RCD_SCRIPTS_SHELL@
|
Import mydns-pgsql from pkgsrc-wip. Packaged by Geert Hendrickx, and
slightly modified by me.
MyDNS is a free DNS server for UNIX. It was implemented from scratch
and is designed to serve records directly from an SQL database
(currently either MySQL or PostgreSQL).
Its primary objectives are stability, security, interoperability, and
speed, though not necessarily in that order.
MyDNS does not include recursive name service, nor a resolver library.
It is primarily designed for organizations with many zones and/or
resource records who desire the ability to perform real-time dynamic
updates on their DNS data via MySQL.
MyDNS starts and is ready to answer questions immediately, no matter
how much DNS data you have in the database. It is very fast and
memory- efficient. It includes complete documentation, including a
manual and a FAQ.
MyDNS supports a few frills, including round robin DNS, dynamic load
balancing, and outgoing AXFR for non-MyDNS nameservers.
MyDNS is licensed under the GNU General Public License.
This package provides the PostgreSQL-based version.
2005-10-29 18:56:15 +02:00
|
|
|
#
|
2011-10-08 00:37:02 +02:00
|
|
|
# $NetBSD: mydns.sh,v 1.2 2011/10/07 22:37:04 shattered Exp $
|
Import mydns-pgsql from pkgsrc-wip. Packaged by Geert Hendrickx, and
slightly modified by me.
MyDNS is a free DNS server for UNIX. It was implemented from scratch
and is designed to serve records directly from an SQL database
(currently either MySQL or PostgreSQL).
Its primary objectives are stability, security, interoperability, and
speed, though not necessarily in that order.
MyDNS does not include recursive name service, nor a resolver library.
It is primarily designed for organizations with many zones and/or
resource records who desire the ability to perform real-time dynamic
updates on their DNS data via MySQL.
MyDNS starts and is ready to answer questions immediately, no matter
how much DNS data you have in the database. It is very fast and
memory- efficient. It includes complete documentation, including a
manual and a FAQ.
MyDNS supports a few frills, including round robin DNS, dynamic load
balancing, and outgoing AXFR for non-MyDNS nameservers.
MyDNS is licensed under the GNU General Public License.
This package provides the PostgreSQL-based version.
2005-10-29 18:56:15 +02:00
|
|
|
#
|
|
|
|
# PROVIDE: mydns
|
|
|
|
# REQUIRE: SERVERS
|
|
|
|
# BEFORE: DAEMON
|
|
|
|
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
|
|
. /etc/rc.subr
|
|
|
|
fi
|
|
|
|
|
|
|
|
name="mydns"
|
|
|
|
rcvar=$name
|
|
|
|
command="@PREFIX@/sbin/mydns"
|
|
|
|
command_args="-b"
|
|
|
|
required_files="@PKG_SYSCONFDIR@/mydns.conf"
|
|
|
|
extra_commands="reload"
|
|
|
|
reload_sig="HUP"
|
|
|
|
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|
|
|
|
else
|
|
|
|
@ECHO@ -n " ${name}$"
|
|
|
|
${command} ${command_args} ${mydns_flags}
|
|
|
|
fi
|