nsupdate delete question

Niall O'Reilly Niall.oReilly at ucd.ie
Thu Apr 30 15:15:06 UTC 2009


On Thu, 2009-04-30 at 10:18 -0400, James M wrote:
> trying to
> delete a nonexistant host does not return an error.

	That seems reasonable to me, since the state of the
	zone file after the transaction is indeed the state
	which would be expected, had the host been present and
	deleted.

	If you need to ensure that there actually was a change
	to the state of the zone, you could specify a prerequisite
	in your transaction file, insisting that the RRset or
	label of interest is present before deletion.

	Something like this might do the trick.

key mandy4.example. blahblahblah
server mandy4.example.com
zone example.com

prereq yxrrset mandy11.example.com a

update delete mandy11.example.com a
send

	IHTH
	/Niall





More information about the bind-users mailing list