Script to delete zone from named.conf

bsd bsd at todoo.biz
Thu Feb 4 17:57:32 UTC 2010


Thanks for your reply… 

I know I can do that with grep, but you see I have 270 domains to delete from my named.conf. 

My question was more: has anyone got a working script that I can use in order to delete name from my "named.conf" file ? 


Idealy It should be a script that I can use in a "for do done" sequence like 

for i in `cat list_to_delete.txt` 
do my_remove_script.(sh|pl|xx) $i done


Thanks. 

Le 4 févr. 2010 à 18:22, Rick Dicaire a écrit :

> On Thu, Feb 4, 2010 at 12:12 PM, bsd <bsd at todoo.biz> wrote:
>> zone "abc.com" {
>>       type slave;
>>       masters  { 213.14.17.2 ; };
>>       file "hosts.abc.com";
>> };
> 
> You could put the whole statement on one line, then use grep or sed
> based on the zone name.
> Operationally, it'd work, and no doubt others will argue aesthetic
> reasons not to do this. Alternately
> a more complicated script could be written to handle the format as you
> currently have it.
> 
> -- 
> aRDy Music and Rick Dicaire present:
> http://www.ardynet.com
> http://www.ardynet.com:9000/ardymusic.ogg.m3u

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

P "Please consider your environmental responsibility before printing this e-mail"





More information about the bind-users mailing list