djbdns
[Top] [All Lists]

Re: migrating to djbdns

To: Payal Rathod <payal-dated-070413-af9@scriptkitchen.com>
Subject: Re: migrating to djbdns
From: Peter Dambier <peter@cesidianroot.com>
Date: Tue, 03 Apr 2007 20:16:34 +0200
Cc: 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: <20070403144200.GA13382@tranquility.scriptkitchen.com>
Mailing-list: contact dns-help@list.cr.yp.to; run by ezmlm
Organization: CesidianRoot
References: <20070403144200.GA13382@tranquility.scriptkitchen.com>
Reply-to: peter@cesidianroot.com
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040921
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
tinydns-data
cp data.cdb /service/tinydns/root


There are some servers I cannot copy with axfr-get, that is why I used the Bind 
9.4.0 to
slave the zone and copy from my own server. Same goes for zones you have as 
named textfiles.

"axfr-get" and "sort -u" do all the the translation work.

For the FCFS-Root I had to have a 2 Gig swapfile for "sort -u" not to break.

There is no need to stop and restart tinydns before or after
"cp data.cdb /service/tinydns/root"

Best copy the data and see if your friends server shows the same data your 
original
server does. Next introduce the new nameserver additionally at your ISP and copy
the data again. You may delete your ISPs nameservers before

"tinydns-data"

so your friend shows only the new nameservers.

Finally delete your ISPs nameservers from the file at your ISP.
Best allow each step a day or two to sift trough the DNS network.

It should be mostly harmless if your ISP removes your zone-file after
month or maybe a week.

Kind regards
Peter and Karin Dambier


Payal Rathod wrote:
Hi,
My ISP is using BIND for our domains. Now I plan to shift our domains to my friend's server, who has also agreed to give me an IP to make my ns. But I have to be very very careful because all the 7 domains are live domains and well in use. I managed to get a sample file from my ISP's admin in BIND format but am not sure on how to make in in tinydns format. The add-* tools are not much helpful in my case. Can someone suggest me a way to go thru' it? The BIND sample is as below,

$TTL    600

@       IN      SOA     ns.example.com. admin.admin.com. (
                        1095739600      ; Serial
                        10800   ; Refresh
                        3600    ; Retry
                        604800  ; Expire
                        86400 ) ; Minimum

example.com.             IN NS   ns2.example-ns.net.
example.com.             IN A    1.2.3.4
mail.example.com.                IN A    1.2.3.5
ftp.example.com.                 IN CNAME        example.com.
www.example.com.                 IN A    1.2.3.5
example.com.            IN MX  10 mail.example.com.

I am worried more on handling Cnames (which I want to have) and ns enteries as above. I don't want ns enteries in a.ns. style.
Can someone show me sample enteries considering the above BIND files?
Essentially I am looking for these enteries in tinydns format. I can make most of them, but am scared to do so for a live domain so taking a precaution by asking the list. Though 7 domains is not too much of work to do by hand, it would be great if someone suggests some automatic scripts on lines of add-*. If there are none
then I can write one.

With warm regards,
-Payal





--
Peter and Karin Dambier
Cesidian Root - Radice Cesidiana
Rimbacher Strasse 16
D-69509 Moerlenbach-Bonsweiher
+49(6209)795-816 (Telekom)
+49(6252)750-308 (VoIP: sipgate.de)
mail: peter@cesidianroot.com
mail: peter@echnaton.arl.pirates
http://www.cesidianroot.com/
http://iason.site.voila.fr/
https://sourceforge.net/projects/iason/


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