AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE User's Guide Page 145

  • Download
  • Add to my manuals
  • Print
  • Page
    / 316
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 144
KwikNet Low Level Services
K
A
DAK
131
4.3 The DNS Client
The KwikNet DNS Client is an optional component providing support for the Domain
Name System (DNS) which permits a network's IP address to be derived from a name
string. For example, the IP address for KADAK's Internet website can be derived by
doing a DNS query for the name string www.kadak.com using Treck function
tfDnsGetHostByName().
This feature is enabled by setting the DNS configuration parameters in the KwikNet
Network Parameter File used in the construction of the KwikNet Library as described in
Chapter 2.3. This service is provided by the KwikNet DNS Client which is configured to
operate as specified by you in your KwikNet configuration. The DNS client executes in
response to queries from your application and then relies upon the KwikNet Task to
resolve the query, if necessary.
DNS Servers
The KwikNet DNS Client maintains the IP addresses of two DNS servers called the
primary and secondary DNS servers. When KwikNet starts, the DNS client clears both
DNS server IP addresses. Until your application provides a primary and optional
secondary DNS server, any DNS query will fail.
The KwikNet DHCP Client accepts up to two DNS server IP addresses for each Ethernet
network interface configured to support DHCP. You can access these DNS server
addresses by calling Treck function tfConfGetBootEntry().
The KwikNet PPP network driver accepts up to two DNS server IP addresses for each PPP
network interface configured to accept DNS server addresses. You can access these DNS
server addresses by calling Treck function tfGetPppDnsIpAddress().
Given these DNS server addresses or your own derived from some other source, you can
set the DNS client's primary or secondary DNS address by calling Treck function
tfDnsSetServer(). To remove a previously installed DNS server IP address, call Treck
function
tfDnsSetServer() with a primary or secondary IP address of 0.0.0.0.
Page view 144
1 ... 144 145 146 ... 316

Comments to this Manuals

No comments