NetSim Source Code Help
Loading...
Searching...
No Matches
DNS.c File Reference
#include "main.h"
#include "List.h"
#include "IP.h"
Include dependency graph for DNS.c:

Go to the source code of this file.

Functions

NETSIM_ID fnFindGateway (NETSIM_ID nDeviceId)
 
NETSIM_IPAddress dns_query (NETSIM_ID nDeviceId, NETSIM_ID id)
 
int freeDNS (DNS *dns)
 

Function Documentation

◆ dns_query()

NETSIM_IPAddress dns_query ( NETSIM_ID  nDeviceId,
NETSIM_ID  id 
)

The DOMAIN NAME SPACE and RESOURCE RECORDS, which are specifications for a tree structured name space and data associated with the names. Conceptually, each node and leaf of the domain name space tree names a set of information, and query operations are attempts to extract specific types of information from a particular set. A query names the domain name of interest and describes the type of resource information that is desired. For example, the Internet uses some of its domain names to identify hosts; queries for address resources return Internet host addresses.

Definition at line 42 of file DNS.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fnFindGateway()

NETSIM_ID fnFindGateway ( NETSIM_ID  nDeviceId)

This function is to find the gateway

Definition at line 18 of file DNS.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ freeDNS()

int freeDNS ( DNS dns)

This function is free the memory allocated for DNS

Definition at line 69 of file DNS.c.