Discussion:
nsupdate: using "wildcard" TTL when removing specific record
(too old to reply)
Petr Bena
2020-06-01 08:45:25 UTC
Permalink
Hello,

Is there any way to tell nsupdate to delete specific record with ANY TTL
value? For example I have following record:

record.domain.org 3500 A 1.2.3.4

I want to delete exactly that record (A with IP 1.2.3.4), except I don't
know what the TTL is, normally, if I knew the TTL, I would do

update delete record.domain.org 3500 A 1.2.3.4

But I would like to do something like

update delete record.domain.org * A 1.2.3.4

Is there any way to accomplish this, or do I always have to retrieve the
record somehow, figure out the TTL and then continue?

Thanks
Mark Andrews
2020-06-01 09:27:26 UTC
Permalink
TTL is ignored on delete if it present. It is set to 0 when sending.

2.5.4 - Delete An RR From An RRset

RRs to be deleted are added to the Update Section. The NAME, TYPE,
RDLENGTH and RDATA must match the RR being deleted. TTL must be
specified as zero (0) and will otherwise be ignored by the primary
master. CLASS must be specified as NONE to distinguish this from an
RR addition. If no such RRs exist, then this Update RR will be
silently ignored by the primary master.
Post by Petr Bena
Hello,
record.domain.org 3500 A 1.2.3.4
I want to delete exactly that record (A with IP 1.2.3.4), except I don't know what the TTL is, normally, if I knew the TTL, I would do
update delete record.domain.org 3500 A 1.2.3.4
But I would like to do something like
update delete record.domain.org * A 1.2.3.4
Is there any way to accomplish this, or do I always have to retrieve the record somehow, figure out the TTL and then continue?
Thanks
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
bind-users mailing list
https://lists.isc.org/mailman/listinfo/bind-users
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ***@isc.org
Loading...