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.
Add a comment to this article
I am sorry to report that no further comments are to be left for articles here. We thank you for past comments. This feature has been disabled.