Index: [Article Count Order] [Thread]

Date:  Sat, 12 May 2007 13:51:25 +0100
From:  Dogsbody <dan (at mark) dogsbody.org>
Subject:  [coba-e:09838] Re: Editing DNS from the command line
To:  coba-e (at mark) bluequartz.org
Message-Id:  <4645B84D.9000201 (at mark) dogsbody.org>
In-Reply-To:  <200705090154.42368.bq (at mark) solarspeed.net>
References:  <4640FD1A.6060509 (at mark) dogsbody.org> <200705090154.42368.bq (at mark) solarspeed.net>
X-Mail-Count: 09838


> Brian's dnsImport.pl is a very good start. It has two minor shortcommings, 
> though. For one it doesn't create or import 2ndary DNS records. Secondly it 
> doesn't delete or update existing records - if there are any. So run 
> dnsImport.pl twice (by accident or intend) and you get double records for DNS 
> which will make BIND9 barf pretty badly. It also may import the 127.0.0.1 
> Zone, although it's already present by default. 

I have found exactly the same thing, the big change would be to look for a 
record and update it if it is already there.

> To compensate for this shortcommings and while working on customer servers I 
> once wrote two quick and dirty scripts which provide that extra features. 
> 
> They still need a bit of cleaning, optimization and additional error checks, 
> but eventually I want to extend dnsImport.pl with that functionality.
> 
> You might find them useful to gather additional ideas and methods for your 
> project:

Brilliant, thank you, this certainly all looks possible, now I just need some 
free evenings to sit down and pull it all together :-)

Dan