3.1.1.1.10.2.1 GetDnsServerZoneFromTable

This procedure can be used to retrieve the DnsServerZone information for the specified record identifier. The following is the input parameter to this procedure.

Param_Id: This specifies the RecordId of the DnsServerZone which needs to be retrieved.

The following is the output parameter of this procedure.

Result_zone: This specifies the DnsServerZone information for the specified RecordId value.

The following are the steps involved.

  1. Lookup the ADM_DNSServerForwardLookupZoneTable for the row with RecordId value equal to Param_Id.

  2. If the row is found, set Result_zone to DnsServerZone and initialize it with the following values.

    • RecordId is assigned to Result_zone.RecordId.

    • ForwardLookupZoneDetails are copied to Result_zone.

    • Call the procedure GetDnsServerFromTable in ADM_DnsServersTable passing the ServerRecordId as the Param_Id input parameter. Assign the Result_DnsServer to Result_data.Server.

    • Call the procedure GetDnsZoneFromTable in ADM_DNSForwardLookupTable passing the DnsZoneId as Param_Id parameter and assigning the Result_zone to Result_zone.Zone.

  3. Return the Result_zone as the output parameter of this procedure.