TCPIP_STACK_NetAddressDnsPrimary Function
C
uint32_t TCPIP_STACK_NetAddressDnsPrimary(
TCPIP_NET_HANDLE netH
);
Description
If interface is enabled then the function will return the IPv4 address of the primary 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
Parameters | Description |
---|---|
netH | Interface handle to get the DNS address of. |
Returns
IPv4 address of the primary DNS server.
0 if no such interface or interface is down.
Remarks
None.
Example
TCPIP_NET_HANDLE netH = TCPIP_STACK_NetHandleGet("PIC32INT");
myIPAddress = TCPIP_STACK_NetAddressDnsPrimary(netH);