TCPIP_DNSS_EntryGet Function

C

TCPIP_DNSS_RESULT TCPIP_DNSS_EntryGet(
    uint8_t * hostName, 
    IP_ADDRESS_TYPE type, 
    int index, 
    IP_MULTI_ADDRESS* pGetAdd, 
    uint32_t * ttltime
);

Description

This function is used to get the DNS server IPv4 or IPv6 address from resolver pool entry as per hostname and IP type and from the index value. This IP type can be a IPv4 and IPv6 type. This is used for DNS record type.

Preconditions

DNSServerInit() should be called.

Parameters

ParametersDescription
hostNameDNS host name.
typeDNS IP type ( it will be ipv4 or ipv6 type and it is mapped to DNS record type) this can be used for DNS record type.
indexGet the next entry after this index value.
pGetAddGet the zero th IPv4 or IPv6 address.
ttltimeTimeout value.

Returns

TCPIP_DNSS_RESULT

Remarks

None.