Index: [Article Count Order] [Thread]

Date:  Mon, 5 Jun 2006 15:56:52 -0400 (EDT)
From:  "Brian N. Smith" <brian (at mark) nuonce.net>
Subject:  [coba-e:05536] Re: DNS upgrade
To:  coba-e (at mark) bluequartz.org
Message-Id:  <Pine.LNX.4.63.0606051553390.31322 (at mark) mail.nuonce.net>
In-Reply-To:  <F07DD4D0940AFF41A207BE85479D2AFF1319B2 (at mark) server.mainline.local>
References:  <F07DD4D0940AFF41A207BE85479D2AFF1319B2 (at mark) server.mainline.local>
X-Mail-Count: 05536

> I have a CentOS/BQ server that currently acts as a secondary DNS server
> - an old RAQ3 is the primary. Is there a simple way to upgrade it to
> primary using the BQ GUI? If not I would appreciate the best way to
> achieve this.

Colin,

It is very easy actually.  I wrote a dnsImport script that should work 
just fine for you.  This assumes you used my installer from 
www.nuonce.net/bq-cd.php

This example pretends "example.com" is my Domain name (zone)

#1 - Take the zone file and copy it to another folder.

mkdir -p /home/dns
cd /etc/named
cp db.example.com /home/dns

#2 - Remove the configuration from the GUI.  Delete the secondary DNS.

#3 - Via the CLI (Shell, as Root), run this command

dnsImport.pl /home/dns

If all goes well, you should see all of the entires being put in.

Now, if you have 50 domains, copy all 50 zone files to /home/dns, and 
remove all 50 from the secondary dns GUI.  Then run that same command!

It is perfect for importing zone files.

Thanks,
Brian