how much ram is needed?????

Kevin Darcy kcd at chrysler.com
Thu Oct 4 20:54:47 UTC 2007


Iñaki Martínez Díez wrote:
> Kevin Darcy wrote:
>   
>> How many records?
>>   
>>     
>  How can i calculate that ?
>
>  Each zone is very diferent and there are too many zones
>   

You know, computers are really good at processing information through 
things called "programs".

Off the top of my head:

sed -n 's/^zone "\(.*\)".*$/\1/p' < /etc/named.conf |
while read i
do
    dig $i axfr | sed -n 's/^;; XFR size: \([0-9]*\) records.*/\1/p'
done |
perl -ne'$total += $_; END { print "$total\n" }'

(If I could assume the existence of the Net::DNS Perl module, this could 
be much more elegant, just a single Perl program that performs all 3 
parts of that pipeline above).

                                                                         
            - Kevin






   
   




More information about the bind-users mailing list