TCPIP_DNSS_CacheEntryRemove Function

C

TCPIP_DNSS_RESULT TCPIP_DNSS_CacheEntryRemove(
    const char* name, 
    IP_ADDRESS_TYPE type, 
    IP_MULTI_ADDRESS* pAdd
);

Description

This function is used for command prompt dnsDelSrv and to delete a entry IPv4 or IPv6 from hostName. Every time this is used to delete either one IPv4 or IPv6 address with respect to the DNS hostname, there will be an expire time for a Host entry.

Preconditions

The DNS server must be initialized.

Parameters

ParametersDescription
nameHostname.
typeIP_ADDRESS_TYPE_IPV4 or IP_ADDRESS_TYPE_IPV6.
pAddV4 or V6 address.

Returns

  • TCPIP_DNSS_RES_OK - If entry remove is successful.

  • TCPIP_DNSS_RES_NO_ENTRY - No such entry is present.

  • TCPIP_DNSS_RES_MEMORY_FAIL - No Memory is present for IPv4 or IPv6 address type.

Remarks

None.