DJBDNS

All posts tagged DJBDNS

I tested this in my TinyDNS setup and worked great.

# verbose tinydns data file

#
# REVERSE ZONE
#
# (reverse) dns servers: primary and secondary
Z45.168.192.in-addr.arpa:ns.example.net:hostmaster.example.net::::::::

# NS records
&45.168.192.in-addr.arpa::ns.example.net:::
&45.168.192.in-addr.arpa::ns2.example.net:::

# MX handlers
@45.168.192.in-addr.arpa::relay.example.net:10
@45.168.192.in-addr.arpa::relay2.example.net:20

#
# FORWARD ZONE:
#
# SOA record: primary nameserver is ns.example.net and hostmaster
# mail address is hostmaster@example.net
# (the ‘Z’ configuration line is the only one that
# allows specifying the hostmaster mail address)
Zexample.net:ns.example.net:hostmaster.example.net::::::::

# NS records: primary and secondary nameservers
&example.net::ns.example.net:::
&example.net::ns2.example.net:::

# MX records: relay.example.net, distance = 10
# relay2.example.net, distance = 20
@example.net::relay.example.net:10
@example.net::relay2.example.net:20

# A records: ns.example.net, ns2.example.net
=ns.example.net:192.168.45.1:::
=ns2.example.net:192.168.45.2:::

# PTR records: relays are in the same hosts as dns servers
+relay.example.net:192.168.45.1:::
+relay2.example.net:192.168.45.2:::

# more A records: gateway.example.net
=gateway.example.net:192.168.45.254:::

# CNAME record: nscache.example.net is alias to gateway.example.net
Cnscache.example.net:gateway.example.net:::

#
# SUB DOMAIN DELEGATION
#

# NS record
&dmz.example.net::ns.dmz.example.net:::

# A/PTR record for nameserver
=ns.dmz.example.net:192.168.90.1:::

Running openvpn under daemontools

Sunday, 21 March 2010 21:03
There are no translations available.

 

Prerequisite: Debian 5.0, openvpn

mkdir -p /var/service/
cd /var/service/
mkdir -m 1755 openvpn
cd openvpn
vim run

#!/bin/sh
exec 2>&1
exec /usr/sbin/openvpn –writepid /var/run/openvpn.server.pid \
–cd /etc/openvpn –config /etc/openvpn/server.conf –log /dev/stderr

chmod 755 run
mkdir -m 755 log
cd log
wget -O run http://qmail.jms1.net/scripts/service-any-log-run
chmod 755 run/etc/init.d/openvpn stop

ln -s /var/service/openvpn /service/openvpn
sleep 5

svstat /service/openvpn/ /service/openvpn/log/

I know there are others, but this is mine.   I always forget how-to change the default installation path with his software, until of course it’s too late and then I get to re-do it.

Need daemontools, ucspi-tcp, and djbdns source code.

 

Create a working directory

$ mkdir ~/working  && cd ~/working

Grab src code

$ wget http://cr.yp.to/djbdns/djbdns-1.05.tar.gz

$ wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
$ wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz

1).  First install daemontools, now if you have never installed anything from David Bernstein, his approach, may seem a little different than what you are normally used to with ./configure; make; make install.  There might be a easy approach to moving this somewhere else but I have found that when I do..it sometimes comes back to bite me.  So for daemontools, I leave it defaulted even thought it still drives me nuts everytime..

Create a /package directory: