debian/0000755000000000000000000000000012220122747007165 5ustar debian/all-knowing-dns.init0000755000000000000000000000522212220121725013055 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: all-knowing-dns # Required-Start: $network $local_fs $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Tiny DNS server for IPv6 Reverse DNS # Description: Tiny DNS server for IPv6 Reverse DNS ### END INIT INFO # Author: Michael Stapelberg # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="AllKnowingDNS" NAME="all-knowing-dns" DAEMON=/usr/bin/all-knowing-dns DAEMON_ARGS="" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x $DAEMON ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \ --background --make-pidfile -- $DAEMON_ARGS \ || return 2 } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name perl RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/all-knowing-dns.install0000644000000000000000000000006312220121725013553 0ustar debian/all-knowing-dns.service lib/systemd/system/ debian/all-knowing-dns.service0000644000000000000000000000024112220121725013543 0ustar [Unit] Description=Tiny DNS server for IPv6 Reverse DNS After=network.target [Service] ExecStart=/usr/bin/all-knowing-dns [Install] WantedBy=multi-user.target debian/changelog0000644000000000000000000000261412220122104011025 0ustar all-knowing-dns (1.7-1) unstable; urgency=low * New upstream version. -- Michael Stapelberg Mon, 23 Sep 2013 22:27:47 +0200 all-knowing-dns (1.4-2) unstable; urgency=low [ Salvatore Bonaccorso ] * Set Maintainer to Debian Perl Group. Set Maintainer to Debian Perl Group and move Michael Stapelberg to Uploaders. * Add Vcs-* fields to debian/control. Add Vcs-Browser and Vcs-Git fields for package in debian/control file. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs -- Michael Stapelberg Wed, 26 Jun 2013 18:56:55 +0200 all-knowing-dns (1.4-1) unstable; urgency=low * New upstream release * Use dh-systemd * Bump Standards-Version to 3.9.4 (no changes necessary) -- Michael Stapelberg Sun, 23 Jun 2013 15:03:03 +0200 all-knowing-dns (1.3-1) unstable; urgency=low * New upstream release * Email change: Michael Stapelberg -> stapelberg@debian.org -- Michael Stapelberg Wed, 28 Mar 2012 18:04:06 +0200 all-knowing-dns (1.2-1) unstable; urgency=low * Initial Release (Closes: #663508). -- Michael Stapelberg Sun, 11 Mar 2012 20:08:42 +0100 debian/compat0000644000000000000000000000000212220121725010356 0ustar 8 debian/control0000644000000000000000000000334212220121725010565 0ustar Source: all-knowing-dns Maintainer: Debian Perl Group Uploaders: Michael Stapelberg Section: perl Priority: optional Build-Depends: debhelper (>= 8), dh-systemd (>= 1.3) Build-Depends-Indep: libmouse-perl, libmousex-nativetraits-perl, libnet-dns-perl, libnetaddr-ip-perl, libprivileges-drop-perl, perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/all-knowing-dns.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/all-knowing-dns.git Homepage: https://metacpan.org/release/AllKnowingDNS/ Package: all-knowing-dns Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libmouse-perl, libmousex-nativetraits-perl, libnet-dns-perl, libnetaddr-ip-perl, libprivileges-drop-perl Description: tiny DNS server for IPv6 Reverse DNS AllKnowingDNS provides reverse DNS for IPv6 networks which use SLAAC (autoconf), e.g. for a /64 network. . The problem with IPv6 reverse DNS and traditional nameservers is that the nameserver requires you to provide a zone file. Assuming you want to provide RDNS for a /64 network, you have 2**64 = 18446744073709551616 different usable IP addresses (a little less if you are using SLAAC). Providing a zone file for that, even in a very terse notation, would consume a huge amount of disk space and could not possibly be held in the memory of the computers available nowadays. . AllKnowingDNS instead generates PTR and AAAA records on the fly. You only configure which network you want to serve and what your entries should look like. debian/copyright0000644000000000000000000000540712220121725011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Michael Stapelberg, Source: https://metacpan.org/release/AllKnowingDNS/ Upstream-Name: AllKnowingDNS Files: * Copyright: 2012 Michael Stapelberg, License: BSD Files: inc/Module/* Copyright: 2002-2011, Adam Kennedy 2002-2011, Audrey Tang 2002-2011, Brian Ingerson License: Artistic or GPL-1+ Files: debian/* Copyright: 2012, Michael Stapelberg License: BSD or Artistic or GPL-1+ License: BSD Copyright © 2012, Michael Stapelberg and contributors All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of Michael Stapelberg nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY Michael Stapelberg ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Michael Stapelberg BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/rules0000755000000000000000000000005512220121725010240 0ustar #!/usr/bin/make -f %: dh $@ --with=systemd debian/source/0000755000000000000000000000000012220121725010460 5ustar debian/source/format0000644000000000000000000000001412220121725011666 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000017012220121725010207 0ustar version=3 https://metacpan.org/release/AllKnowingDNS/ .*/AllKnowingDNS-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$