#!/usr/bin/eperl -w ### # # Copyright (c) Ensim Corporation 2000, 2001 All Rights Reserved. # # This software is furnished under a license and may be used and copied # only in accordance with the terms of such license and with the # inclusion of the above copyright notice. This software or any other # copies thereof may not be provided or otherwise made available to any # other person. No title to and ownership of the software is hereby # transferred. # # Exit codes (on failure error message goes to stderr): # 0 -> success # 0-16 -> DNS Update error # 0x80 and up -> other error # # The information in this software is subject to change without notice # and should not be construed as a commitment by Ensim Corporation. # Ensim assumes no responsibility for the use or reliability of its # software on equipment which is not supplied by Ensim. # ---------------------------------------------------------------------- use lib ($ENV{'OCW_SVCPATH'} || "/usr/lib/opcenter")."/bind"; use lib ($ENV{'OCW_SVCPATH'} || "/usr/lib/opcenter")."/cmdline_common"; use strict; use Getopt::Std; use DnsCommon; use DnsUpdate; use CmdLineCoder; CmdLineCoder::decode_args(); my $usage = "Usage: delete_txt -z \n"; my(%options); die $usage unless ( Getopt::Std::getopts("z:",\%options) ); die $usage if @ARGV; # Should be no more arguments my $zone = ""; if ( $options{z} ) { $zone = $options{z}; } else { die $usage ; } my $updater = new DnsUpdate($zone); $updater->pushUpdate ("delete", $zone, "TXT"); DnsCommon::handleUpdate ($updater);