summaryrefslogtreecommitdiff
path: root/maradns
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
committerJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
commitbdea7e6c6a535e57a07d376a3139d0788efaaa41 (patch)
tree1a7334c99fa39b1ad1a7a35c113b18cb0d92413c /maradns
downloadopt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.gz
opt-bdea7e6c6a535e57a07d376a3139d0788efaaa41.tar.xz
create branch for 2.2
Diffstat (limited to 'maradns')
-rw-r--r--maradns/.footprint36
-rw-r--r--maradns/.md5sum5
-rw-r--r--maradns/Pkgfile31
-rw-r--r--maradns/db.0.0.12714
-rw-r--r--maradns/db.localhost14
-rw-r--r--maradns/maradns23
-rw-r--r--maradns/mararc69
7 files changed, 192 insertions, 0 deletions
diff --git a/maradns/.footprint b/maradns/.footprint
new file mode 100644
index 000000000..fcbd66d2b
--- /dev/null
+++ b/maradns/.footprint
@@ -0,0 +1,36 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/maradns/
+-rw-r--r-- root/root etc/maradns/db.0.0.127
+-rw-r--r-- root/root etc/maradns/db.example.net
+-rw-r--r-- root/root etc/maradns/db.localhost
+drwxr-xr-x root/root etc/maradns/logger/
+-rw-r--r-- root/root etc/mararc
+-rw-r--r-- root/root etc/mararc.sample
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/maradns
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/askmara
+-rwxr-xr-x root/root usr/bin/duende
+-rwxr-xr-x root/root usr/bin/fetchzone
+-rwxr-xr-x root/root usr/bin/getzone
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/askmara.1.gz
+-rw-r--r-- root/root usr/man/man1/fetchzone.1.gz
+-rw-r--r-- root/root usr/man/man1/getzone.1.gz
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/csv1.5.gz
+-rw-r--r-- root/root usr/man/man5/csv2.5.gz
+-rw-r--r-- root/root usr/man/man5/csv2_txt.5.gz
+-rw-r--r-- root/root usr/man/man5/mararc.5.gz
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/duende.8.gz
+-rw-r--r-- root/root usr/man/man8/maradns.8.gz
+-rw-r--r-- root/root usr/man/man8/zoneserver.8.gz
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/maradns
+-rwxr-xr-x root/root usr/sbin/zoneserver
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/log/
+-rw-r--r-- root/root var/log/maradns.log (EMPTY)
diff --git a/maradns/.md5sum b/maradns/.md5sum
new file mode 100644
index 000000000..b045acacd
--- /dev/null
+++ b/maradns/.md5sum
@@ -0,0 +1,5 @@
+fdc4078e6394d43e49a1cdae07edbb46 db.0.0.127
+7d8ba321d7776dc8aef8fd834b77253e db.localhost
+020d9bffda1f19fa9287c80672554ecf maradns
+f39d5fcd6deed67668a51162be00642e maradns-1.2.03.2.tar.bz2
+80edc6970d4e64d524c19632061a56c0 mararc
diff --git a/maradns/Pkgfile b/maradns/Pkgfile
new file mode 100644
index 000000000..50aad9643
--- /dev/null
+++ b/maradns/Pkgfile
@@ -0,0 +1,31 @@
+# $Id: Pkgfile,v 1.14 2004/05/30 11:31:36 jue Exp $
+# Description: A authoritative,recursive (caching) DNS server that strives to be secure and fast
+# URL: http://www.maradns.org/
+# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
+
+name=maradns
+version=1.2.03.2
+release=1
+source=(http://www.maradns.org/download/1.2/$version/maradns-$version.tar.bz2 \
+ mararc maradns db.localhost db.0.0.127)
+
+build () {
+ cd maradns-$version
+
+ install -d $PKG/usr/{bin,sbin,man/man{1,5,8}}
+ install -d $PKG/{etc/{rc.d,maradns},var/log}
+
+ sed -i "/^FLAGS/s/-O2/$CFLAGS/" build/Makefile.linux
+ ./configure
+ make
+ make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
+
+ rm -r $PKG/usr/doc
+ mv $PKG/etc/mararc $PKG/etc/mararc.sample
+
+ install -m 644 $SRC/mararc $PKG/etc
+ install -m 644 $SRC/db.* $PKG/etc/maradns
+ install -m 755 $SRC/maradns $PKG/etc/rc.d
+
+ touch $PKG/var/log/maradns.log
+}
diff --git a/maradns/db.0.0.127 b/maradns/db.0.0.127
new file mode 100644
index 000000000..3b9ab94ea
--- /dev/null
+++ b/maradns/db.0.0.127
@@ -0,0 +1,14 @@
+#
+# /etc/maradns/db.0.0.127
+#
+
+# SOA
+% SOA localhost. root@localhost. 1 7200 3600 604800 1800
+
+# NS
+% NS localhost.
+
+# PTR
+1.% PTR localhost.
+
+# End of file
diff --git a/maradns/db.localhost b/maradns/db.localhost
new file mode 100644
index 000000000..a2da7ba5b
--- /dev/null
+++ b/maradns/db.localhost
@@ -0,0 +1,14 @@
+#
+# /etc/maradns/db.localhost
+#
+
+# SOA
+% SOA localhost. root@localhost. 1 7200 3600 604800 1800
+
+# NS
+% NS localhost.
+
+# A
+% A 127.0.0.1
+
+# End of file
diff --git a/maradns/maradns b/maradns/maradns
new file mode 100644
index 000000000..edec21b08
--- /dev/null
+++ b/maradns/maradns
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# /etc/rc.d/maradns: start/stop mara DNS server
+#
+
+case $1 in
+start)
+ setsid /usr/sbin/maradns >> /var/log/maradns.log &
+ ;;
+stop)
+ killall -q /usr/sbin/maradns
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file
diff --git a/maradns/mararc b/maradns/mararc
new file mode 100644
index 000000000..f580c0161
--- /dev/null
+++ b/maradns/mararc
@@ -0,0 +1,69 @@
+#
+# /etc/mararc
+#
+
+# Base settings
+hide_disclaimer = "YES"
+chroot_dir = "/etc/maradns"
+maradns_uid = 99
+maradns_gid = 99
+random_seed_file = "/dev/urandom"
+
+# Timing and size settings
+maximum_cache_elements = 2048
+maxprocs = 96
+timeout_seconds = 5
+
+# Logging and debug settings
+timestamp_type = 4
+verbose_level = 3
+debug_msg_level = 3
+
+# The addresses mara bind to
+# CHANGING THIS IS REQUIRED !
+ipv4_bind_addresses = "127.0.0.1,192.168.0.1"
+
+# The various zones we support
+csv2 = {}
+csv2["localhost."] = "db.localhost"
+csv2["0.0.127.in-addr.arpa."] = "db.0.0.127"
+# csv2["example.net."] = "db.example.net"
+
+# ACL for localhost, localnet
+# CHANGING THIS IS REQUIRED !
+ipv4_alias = {}
+ipv4_alias["localhost"] = "127.0.0.0/8"
+ipv4_alias["localnet"] = "192.168.0.0/24"
+recursive_acl = "localhost,localnet"
+zone_transfer_acl = "localnet"
+
+# The root servers which we use when making recursive queries.
+# http://www.icann.org
+ipv4_alias["icann"] = "198.41.0.4,192.228.79.201,192.33.4.12,128.8.10.90,"
+ipv4_alias["icann"] += "192.203.230.10,192.5.5.241,192.112.36.4,"
+ipv4_alias["icann"] += "128.63.2.53,192.36.148.17,192.58.128.30,"
+ipv4_alias["icann"] += "193.0.14.129,198.32.64.12,202.12.27.33"
+
+# OSRC: http://www.open-rsc.org/
+ipv4_alias["osrc"] = "199.166.24.1,205.189.73.102,199.166.24.3,"
+ipv4_alias["osrc"] += "207.126.103.16,195.117.6.10,205.189.73.10,"
+ipv4_alias["osrc"] += "204.57.55.100,213.196.2.97"
+
+# AlterNIC: http://www.alternic.org/
+ipv4_alias["alternic"] = "160.79.129.192,24.6.78.12,160.79.133.70,"
+ipv4_alias["alternic"] += "65.15.8.202,216.162.42.240,195.224.64.190,"
+ipv4_alias["alternic"] += "160.79.133.66,216.162.42.185"
+
+# OpenNIC: http://www.opennic.unrated.net/
+ipv4_alias["opennic"] = "131.161.247.226,209.151.84.102,64.247.218.140,"
+ipv4_alias["opennic"] += "64.247.218.149,209.104.33.250,209.104.63.249,"
+ipv4_alias["opennic"] += "209.151.84.103,199.175.137.211,207.6.128.246,"
+ipv4_alias["opennic"] += "65.243.92.254"
+
+root_servers = {}
+root_servers["."] = "icann"
+
+# upstream_servers = {}
+# upstream_servers["."] = "usually_your_isps_dns_servers"
+
+# End of file

Generated by cgit