CRLF as line terminator in zone file

Joe Abley jabley at patho.gen.nz
Tue Oct 5 10:24:43 UTC 1999


On Tue, Oct 05, 1999 at 08:16:59AM +0200, Marc Lampo wrote:
> not particularly a "bind" solution, but would it be an option to get rid
> of the '\r' right after the transfert phase ?
> 
> for file in --downloaded-files--
> do
>         sed '/.$/s///' $file >/tmp/$$ && mv /tmp/$$ $file
> done

I looked at that too. However, I decided that:

 + it wasn't going to scale very well. The script above takes quite
   a long time to run over even just 5000 zones, and this guy is
   loading another 200 zones per day at the moment.

 + it introduces new and exciting complications for locking, trying
   to ensure that updates through the samba share aren't overlapping
   with disk-thrashing sed action :)

> Sure, perl could get the job done as well.

And I could write a nice short piece of C which would be quicker
than sed or perl, but I still think the functionality is valuable
for bind.


Joe


More information about the bind-users mailing list