Download presentation
Presentation is loading. Please wait.
Published byLaurence Bradford Modified over 9 years ago
1
DNS Client API
2
Utilizing DNS Functionality Baseline Application Kernel, Stack, BSP DNS Integral DNSAddServer() DNSRemoveServer() DNSGetServers() DNSgethostbyname() Get an IP Address Based on Host Name Supplied API’s
3
Typical DNS Implementation Informs Stack of DNS Server(s) Via DHCP or Direct Call Returns an IP address if Successful DNSAddServer(ULONG IP_Address) DNSgethostbyname(char *name)
4
Getting DNS Server IP Addresses Use DNSGetServers to retrieve list of DNS servers: int DNSGetServers( unsigned long *IpAddrs, int nArraySize ) Server count Up to 3 DNS server IP addresses are returned in the IpAddrs array (which should therefore usually have 3 elements). Returns number of DNS servers, or –1 for failure. This function is especially useful when the DHCP client is used. IP address array (3 elements) Size of supplied IP address array
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.