dns.c File Reference

#include "nsd.h"

Data Structures

struct  Value

Defines

#define INADDR_NONE   (-1)

Typedefs

typedef int( GetProc )(Ns_DString *dsPtr, char *key)

Functions

int Ns_GetHostByAddr (Ns_DString *dsPtr, char *addr)
int Ns_GetAddrByHost (Ns_DString *dsPtr, char *host)
int Ns_GetAllAddrByHost (Ns_DString *dsPtr, char *host)
void NsEnableDNSCache (void)

Define Documentation

#define INADDR_NONE   (-1)


Typedef Documentation

typedef int( GetProc)(Ns_DString *dsPtr, char *key)


Function Documentation

int Ns_GetAddrByHost ( Ns_DString *  dsPtr,
char *  host 
)

int Ns_GetAllAddrByHost ( Ns_DString *  dsPtr,
char *  host 
)

int Ns_GetHostByAddr ( Ns_DString *  dsPtr,
char *  addr 
)

---------------------------------------------------------------------- Ns_GetHostByAddr, Ns_GetAddrByHost --

Convert an IP address to a hostname or vice versa.

Results: See DnsGet().

Side effects: A new entry is entered into the hash table.

----------------------------------------------------------------------

void NsEnableDNSCache ( void   ) 

---------------------------------------------------------------------- NsEnableDNSCache --

Enable DNS results caching.

Results: None.

Side effects: Futher DNS lookups will be cached up to given timeout.

----------------------------------------------------------------------

NB: Config minutes, seconds internally.


Generated on Tue Sep 4 19:58:56 2007 by  doxygen 1.5.1