in reply to Re^8: Deleting lines from named.conf file
in thread Deleting lines from named.conf file
zone "foo.com" { type master file path to the zone }; zone "blah.com" { type master file path to the zone }; zone "bar.com" { type master file path to the zone };
and running the script provided
qwurx [shmem] ~ > perl zonedel.pl please enter the domain name: foo.com
I get as result
zone "blah.com" { type master file path to the zone }; zone "bar.com" { type master file path to the zone };
Yes, it starts with a blank line, but the zone definition is gone. What the heck did you run? Is it really that difficult to suppress blank lines? I'm running out of advice for you.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Deleting lines from named.conf file
by firewall00 (Acolyte) on Nov 11, 2007 at 02:51 UTC | |
by shmem (Chancellor) on Nov 11, 2007 at 11:07 UTC | |
by firewall00 (Acolyte) on Nov 14, 2007 at 03:32 UTC | |
by firewall00 (Acolyte) on Nov 12, 2007 at 02:41 UTC | |
|
Re^10: Deleting lines from named.conf file
by firewall00 (Acolyte) on Nov 11, 2007 at 00:47 UTC |