anchor.diff:  %% include in the SOA's mname field.
   %% @end
   -spec exclude_mname_duplicates(dns:rr(), [dns:rr()]) -> [dns:rr()].
  -exclude_mname_duplicates(SOA, NameServers) ->
  -    MName = SOA#dns_rrdata_soa.mname,
  -    lists:foldl(fun(NameServer, Acc0) ->
  -                        case NameServer#dns_rrdata_ns.dname =:= MName of
  +exclude_mname_duplicates(#dns_rrdata_soa{mname = MName}, NameServers) ->
  +    lists:foldl(fun(#dns_rrdata_ns{dname = DName} = NameServer, Acc0) ->
  +                        case DName =:= MName of
                               true ->
                                   %% Found a NS record that is also a mname of an SOA, exclude it
                                   Acc0;
  
positive.code: 
  remove_old_soa_add_new(_NewAuthority, [],  NewRecords) ->
      NewRecords;
  remove_old_soa_add_new(NewAuthority, [Record | Records], NewRecords) ->
      case Record#dns_rr.data of
          #dns_rrdata_soa{} ->
              remove_old_soa_add_new(NewAuthority, Records, [NewAuthority | NewRecords]);
          _ ->
  
negative.code: 
  %% @doc This function sends the NOTIFY message to all slaves of the zone.
  -spec send_notify(binary(), #zone{}) -> [ok].
  send_notify(ZoneName, #zone{notify_source = NotifySource, records = Records}) ->
      %% Now send the notify message out to the set of IPs
      BindIP = case NotifySource of
                   <<>> ->
                       {127, 0, 0, 1};
                   IP ->
  