Jump to main content

##

# TCPIP_DNS_ENTRY_QUERY Structure

## C

    typedef struct {
    char* hostName;
    int nameLen;
    IPV4_ADDR * ipv4Entry;
    int nIPv4Entries;
    IPV6_ADDR * ipv6Entry;
    int nIPv6Entries;
    TCPIP_DNS_RESULT status;
    uint32_t ttlTime;
    TCPIP_NET_HANDLE hNet;
    int serverIx;
    int nIPv4ValidEntries;
    int nIPv6ValidEntries;
    } TCPIP_DNS_ENTRY_QUERY;

## Description

Structure: TCPIP_DNS_ENTRY_QUERY.

DNS module uses this structure to return information about a resolved IPv4 and IPv6 address.

## Members

Members | Description
--- | ---
hostName | Pointer to a name to receive the host name for that particular entry.
nameLen | hostName buffer size.
ipv4Entry | Array of IPv4 entries/addresses to be populated.
nIPv4Entries | Number of entries in the ipv4Entry array.
ipv6Entry | Array of IPv6 entries/addresses to be populated.
nIPv6Entries | Number of entries in the ipv6Entry array.
status | current status for this name: - TCPIP_DNS_RES_OK: name is resolved - TCPIP_DNS_RES_PENDING: name is pending - TCPIP_DNS_RES_SERVER_TMO: server timeout
ttlTime | Time to live for a solved DNS entry.
hNet | Interface the name was obtained or on which the query is currently ongoing.
serverIx | Index of the server used on that interface.
nIPv4ValidEntries | Number of valid entries written to the ipv4Entry.
nIPv6ValidEntries | Number of valid entries written to the ipv6Entry.

## Remarks

None.