Script to delete zone from named.conf
    Rick Dicaire 
    kritek at gmail.com
       
    Thu Feb  4 17:22:52 UTC 2010
    
    
  
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
    
    
More information about the bind-users
mailing list