Re: Delete/update MX record

2022-06-06 Thread Jan-Piet Mens via bind-users

Using nsupdate when I try to delete an MX record for a domain, I get REFSUED.


REFUSED is also reported when attempting to update a non-dynamic zone. Are you 
sure the zone you're trying to update is actually dynamic?


How do I remove and replace the MX record for a domain with nsupdate?


del ownernamne. MX [rdata]

should do it. Without [rdata] all MX for the owner will be removed, but specify 
rdata to indicate you wish to delete just the one.

As Mark said: best demonstrate what you are doing.

-JP

--
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
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Delete/update MX record

2022-06-05 Thread Tony Finch
@lbutlr  wrote:

> Using nsupdate when I try to delete an MX record for a domain, I get
> REFSUED.
>
> When I try to add an MX record with the same priority (or not), it
> leaves the old record as well.
>
> How do I remove and replace the MX record for a domain with nsupdate?

The UPDATE protocol will not tell the client why it didn't work; for that
you must check `named`s logs.

In general, with UPDATE it's best to delete then add records for a name,
using a single UPDATE transaction to avoid any point in time where the
name is missing. The comments in nsdiff say:

# For each owner name prepare deletion commands followed by addition
# commands. This ensures TTL adjustments and CNAME/other replacements
# are handled correctly. Ensure each owner's changes are not split below.

There's are a couple of cases where this doesn't work: the SOA and NS
RRsets. For SOA, you can just add the new record which implicitly replaces
the old one. For NS records, in my experience complete replacement is rare
enough that it's OK to simply nspatch the zone twice. (The NS delete will
be ignored instead of rejected.)

-- 
Tony Finch(he/they)  Cambridge, England
Shetland Isles: Variable 3 or less, becoming north or northeast 3 or 4
later. Slight, but smooth in southeast. Mainly fair. Good.
-- 
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
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: Delete/update MX record

2022-06-04 Thread Mark Andrews
Show your procedure. 

-- 
Mark Andrews

> On 5 Jun 2022, at 06:37, @lbutlr  wrote:
> 
> Using nsupdate when I try to delete an MX record for a domain, I get REFSUED.
> 
> When I try to add an MX record with the same priority (or not), it leaves the 
> old record as well.
> 
> How do I remove and replace the MX record for a domain with nsupdate?
> 
> -- 
> A woman stays up all night with two men
>(Singin' in the Rain)
> 
> -- 
> 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
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
-- 
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
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users