djbdns
[Top] [All Lists]

Re: migrating to djbdns

To: peter@cesidianroot.com
Subject: Re: migrating to djbdns
From: Maurice Lucas <mslucas@taos-it.nl>
Date: Tue, 03 Apr 2007 21:54:33 +0200
Cc: Payal Rathod <payal-dated-070413-af9@scriptkitchen.com>, dns <dns@list.cr.yp.to>
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-djbdns@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list dns@list.cr.yp.to
In-reply-to: <46129A02.9020905@cesidianroot.com>
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
Organization: TAOS-IT
References: <20070403144200.GA13382@tranquility.scriptkitchen.com> <46129A02.9020905@cesidianroot.com>
Reply-to: mslucas@taos-it.nl
On Tue, 2007-04-03 at 20:16 +0200, Peter Dambier wrote:
> Hi Payal,
> 
> I am running a mixed server. I use Bind 9.4.0 to gather (slave) data and I
> use axfr-get to get my data to tinydns. e.g.
> 
> 
> tcpclient 212.97.45.53 53 axfr-get . CesidianRoot.txt CesidianRoot.tmp
> tcpclient 192.33.4.12 53 axfr-get arpa arpa.txt arpa.tmp
> tcpclient 192.228.79.201 53 axfr-get in-addr.arpa in-addr.arpa.txt 
> in-addr.arpa.tmp
> tcpclient 208.185.249.251 53 axfr-get fur fur.txt fur.tmp
> tcpclient 64.81.44.251 53 axfr-get geek geek.txt geek.tmp
> tcpclient 208.185.249.250 53 axfr-get opennic.glue opennic.glue.txt 
> opennic.glue.tmp
> tcpclient 208.185.249.251 53 axfr-get indy indy.txt indy.tmp
> tcpclient 193.0.14.129 53 axfr-get root-servers.net root-servers.net.txt 
> root-servers.net.tmp
> tcpclient 69.72.158.226 53 axfr-get tlda.net tlda.net.txt tlda.net.tmp
> tcpclient 212.72.72.97 53 axfr-get ffii.org ffii.org.txt ffii.org.tmp
> tcpclient 66.180.174.61 53 axfr-get publicroot.org publicroot.org.txt 
> publicroot.org.tmp
> tcpclient 64.81.44.251 53 axfr-get oss oss.txt oss.tmp
> tcpclient 208.185.249.250 53 axfr-get parody parody.txt parody.tmp
> sort -u *.txt > data


I did this ones for 40 domains and received a very ugly tinydns data
file.
After the first axfr-get session I did create all the files by hand.
using the following template

#=================================================
# NAMESERVERS for ##
#=================================================
.:IP1:a:259200
.:IP2:b:259200

# localhost for ##
=localhost.:127.0.0.1:86400

# MAILSERVER for ##
@##::default mx server::86400

# HOSTS from ##
=www.##:1.2.3.4:86400

# aliasses for ##
+:1.2.3.4:86400

using sed for replacing the ## for the name of a client
IP1 and IP2 are my dns servers

I did save every client to there own text file and use a combine script
(stolen idea) to make a complete datafile

> tinydns-data
> cp data.cdb /service/tinydns/root

ONLY use cp if on the same partition.
You don't want to serve partitial data


And if you don't want a.ns.domain see the "man page"
http://cr.yp.to/djbdns/tinydns-data.html

Examples: 
     .panic.mil:1.8.7.56:dns2.panic.mil
creates an NS record showing dns2.panic.mil as a name server for
panic.mil, an A record showing 1.8.7.56 as the IP address of
dns2.panic.mil, and an SOA record for panic.mil.



-- 
With kind regards,

Maurice Lucas
TAOS-IT


<Prev in Thread] Current Thread [Next in Thread>