DNS Client API - PowerPoint PPT Presentation

About This Presentation
Title:

DNS Client API

Description:

DNS Client API Utilizing DNS Functionality Typical DNS Implementation Getting DNS Server IP Addresses Use DNSGetServers to retrieve list of DNS servers: int ... – PowerPoint PPT presentation

Number of Views:4
Avg rating:3.0/5.0
Slides: 5
Provided by: AlWil6
Category:
Tags: api | dns | client

less

Transcript and Presenter's Notes

Title: DNS Client API


1
DNS Client API
2
Utilizing DNS Functionality
Get an IP Address Based on Host Name
  • DNSAddServer()
  • DNSRemoveServer()
  • DNSGetServers()
  • DNSgethostbyname()

Baseline Application Kernel, Stack, BSP DNS
Integral
Supplied APIs
3
Typical DNS Implementation
  • Informs Stack of DNS Server(s)
  • Via DHCP or Direct Call

DNSAddServer(ULONG IP_Address)
  • Returns an IP address if Successful

DNSgethostbyname(char name)
4
Getting DNS Server IP Addresses
  • Use DNSGetServers to retrieve list of DNS
    serversint 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
Write a Comment
User Comments (0)
About PowerShow.com