3.1.1.1.7.2.1 AddOrUpdateAddressDNSReverseLookup
The AddOrUpdateAddressDNSReverseLookup procedure updates the forward lookup DNS zone mapping for an IP address. The following the input parameters are used:
Param_addressfamily: Specifies the simple table within the ADM_AddressDNSReverseLookupTable against which the processing steps of the procedure are to be performed.
Param_addressId: The RecordId of the address object for which the row specifies the reverse lookup registration information.
Param_dnsZoneId: The RecordId of the zone under which the reverse-lookup registration of the address is done. This is the record identifier of the zone in ADM_DNSReverseLookupTable.
Param_serverDnsZoneId: The RecordId of the entry in the ADM_DNSServerReverseLookupZoneTable specifying the server on which the zone with zone record identifier Param_dnsZoneId is present, against which the address is registered.
Param_recordId: The RecordId of the row in ADM_AddressDNSReverseLookupTable that has to be updated. This will not be specified if the row is to be newly added.
The output of this procedure is the Result_recordId parameter specifying the RecordId of either the newly added row or the updated row.
The following steps are involved.
Select the simple table based on Param_addressfamily for the ADM_AddressDnsReverseLookupTable on which the processing has to be done.
If Param_recordId is present, the existing row in the table is modified. Otherwise, a new row is inserted. The following are the data assignments to be performed in either case:
Assign Param_addressId to AddressRecordId.
Assign Param_dnsZoneId to DNSZoneRecordID.
Assign Param_serverDnsZoneId to DNSServerRecordID.
If the row has been newly added, assign Result_recordId with the RecordId of the newly added row.