[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] deleting dns entries from with a Perl or PHP script
- Subject: Re: [cobalt-developers] deleting dns entries from with a Perl or PHP script
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Fri Mar 15 14:11:11 2002
- Organization: nobaloney.net
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Jim Carey wrote:
> Could sks please give me an example of how I could call the cobalt
> dns index.cgi to delete a dns entry from within Perl or PHP. I
> need to run through a lot of entries and delete those that are no
> longer on the system. That would be a lot easier from a PHP or Perl
> script (also have to update a database etc)
Jim,
My guess is is it would be a lot easier to write a simple shell script
(probably a one-liner <smile>) to find lines containing "domain.com" in
/etc/named/records and delete them.
Then go to DNS section of the gui, and click on "save changes".
That'll do it for every RaQ except the XTR; I don't know about the XTR.
Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net
P. O. Box 52672, Riverside, CA 92517
voice: (909) 778-9980 * fax: (702) 548-9484