3.1.1.1.19.2.1 GetDnsServerFromTable

The GetDnsServerFromTable procedure can be used to retrieve the DnsServer instance from the ADM_DnsServersTable.

It takes the following input parameter.

Param_Id: The RecordId of the DNS server in ADM_DnsServersTable for which the information is being requested.

The procedure returns the following output parameter.

Result_DnsServer: This is of type DnsServer specifying the DNS server information.

The following steps are involved:

  1. Look up ADM_DnsServersTable for the row with RecordId being Param_Id.

  2. If the row doesn't exist, initialize Result_DnsServer to NULL and return.

  3. Copy the DNSServerHealthDetails to Result_DnsServer.

  4. Call the procedure GetServerRoleInfoFromTable in ADM_ServerRolesTable by passing RecordId as Param_Id. Assign the Result_serverRole to Result_DnsServer.ServerRoleInfo.

  5. Return Result_serverRole as the output of the procedure.