In article ,
Mark Andrews wrote:
> Recent version of named-checkconf have a -p (print) option which
> will emit named.conf, sans comments, in a consistent style which
> will then be easy to post process.
Shame about the "sans comments" - easy comprehension or easy management
- take your pick.
In message <20100204212727.ga23...@norchemlab.com>, Justin T Pryzby writes:
> On Thu, Feb 04, 2010 at 06:19:07PM +, Evan Hunt wrote:
> > > 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 wor
On Thu, Feb 04, 2010 at 02:27:27PM -0700, Justin T Pryzby wrote:
> awk -v s=toxtracker.info 'BEGIN{RS=""; s="zone \""s"\""} $0~s{print $0"\n"}'
Doh, should be:
awk -v s=toxtracker.info 'BEGIN{RS=""; s="zone \""s"\""} $0!~s{print $0"\n"}'
___
bind-users m
On Thu, Feb 04, 2010 at 06:19:07PM +, Evan Hunt wrote:
> > 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 ?
>
On 4 Feb 2010, at 17:12, bsd wrote:
> Hello,
>
> I am looking for a script to delete a zone from named.conf and maybe also
> from server (zone file).
>
> My zone file looks like that (but could have some variations). Everything
> inside brackets should be deleted… and eventually the host fil
Thanks Evan,
I'll try that and maybe try to embed that on a bash script…
The formatting should be the same for most of my domains… Anyway I'll test that
on copy of my zone file ;-)
sed and awk haven't got so friendly syntax; but they are indeed very powerful…
Sincerly yours.
Le 4 févr.
> 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 ?
cat named.conf | \
awk 'BEGIN {suppress = 0}
/zone "whatev
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
On Thu, Feb 4, 2010 at 12:12 PM, bsd 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
Hello,
I am looking for a script to delete a zone from named.conf and maybe also from
server (zone file).
My zone file looks like that (but could have some variations). Everything
inside brackets should be deleted… and eventually the host file.
zone "abc.com" {
type slave;
ma
10 matches
Mail list logo