TCPIP_STACK_NetAddressDnsSecond Function

C

uint32_t TCPIP_STACK_NetAddressDnsSecond(
    TCPIP_NET_HANDLE netH
);

Description

If interface is enabled then the function will return the IPv4 address of the secondary DNS of the network interface.

Preconditions

The TCPIP_STACK_Initialize() function must have been called before calling this function. The network interface should be up and running.

Parameters

ParametersDescription
netHInterface handle to get the secondary DNS address of.

Returns

  • The secondary DNS address if success.

  • 0 if no such interface or interface is down.

Remarks

None.

Example

TCPIP_NET_HANDLE netH = TCPIP_STACK_NetHandleGet("PIC32INT");
myIPAddress = TCPIP_STACK_NetAddressDnsSecond(netH);