Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

DNS
[User Protocols]

Domain name service protocol. More...

Data Structures

struct  DNSCONFIG
struct  DNSHEADER
struct  DNSQUESTION
struct  DNSRESOURCE

Functions

void NutDnsConfig (u_char *hostname, u_char *domain, u_long dnsip)
 Sets DNS configuration.

u_long NutDnsGetHostByName (CONST u_char *hostname)
 Retrieves IP-address corresponding to a host name.


Detailed Description

Domain name service protocol.


Function Documentation

void NutDnsConfig u_char   hostname,
u_char   domain,
u_long    dnsip
 

Sets DNS configuration.

Parameters:
hostname DNS name of the local host.
domain Name of the domain of the local host.
dnsip IP address of the DNS server.
Examples:
inetq/inetq.c.

u_long NutDnsGetHostByName CONST u_char   hostname
 

Retrieves IP-address corresponding to a host name.

This is a very simple implementation, which will not return any other resource information than the IP address.

Parameters:
hostname Fully qualified domain name of the host.
Returns:
IP address, which is zero, if the name could not be resolved.
Examples:
inetq/inetq.c.


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/