InetSuite DNS resolver module SWI interface
Environment variables used
| Inet$Resolvers | SPACE separated list of dotted IP addresses of servers |
| Inet$Hostname | Used by gethostname() to read local host name |
| Inet$LocalDomain | Overrides local domain (normally taken from Inet$Hostname) |
| Inet$SearchDomains | SPACE separated list of IP domain names to search on |
| Inet$ResolverRetries | Number of retries when lookups fail |
| Inet$ResolverDelay | Delay in seconds between retry attempts |
Resolver module
The Resolver relocatable module provides the following SWI calls for use by network applications wishing to perform DNS/Hosts file name lookups;
Resolver_GetHostByName
(SWI 0x46000)
On entry
On exit
Use
Resolver_GetHost
(SWI 0x46001)
On entry
On exit
Use
On entry
This performs a single tasking lookup, and otherwise behaves like _GetHostName.
Resolver_GetCache
(SWI 0x46002)
Use
Resolver_CacheControl
(SWI 0x46003)
Use
Resolver_XXXXX
(SWI 0x460XX)
Use
Example BASIC programs that use the DNS resolver can be found at DNS examples.
Email this page to a friend
Last edit: 11th May 2006 at 7:43pm (729 days ago) |
| 
Viewed 2981 times since 12th May 2006, or 4 views per day |