home *** CD-ROM | disk | FTP | other *** search
- Please note that in this port several changes have been made
- (obviously). In this cryptic documentation, resolver(5) means the file
- 'resolver' in directory '5', and resolv+(8) means file 'resolv+' in directory
- '8'. Note that this library is only of use if you actually alter your sources
- to call '_gethostbyname' in lieu of 'gethostbyname', and '_gethostbyaddr' in
- lieu of 'gethostbyaddr'. You still require the appropriate headers included,
- as these calls simply augment what is all ready provided - these calls simply
- allow the user to have a bit of flexibility on how the resolution is
- performed if the new calls are used. Plus they allow you to use DNS systems!
-
- Firstly, the resolver configuration file mentioned in resolver(5) -
- /etc/resolv.conf - is to be found at <INetDBase$Path> as the filename
- 'resolve' (ie. copy the file 'resolve' in directory 'config' to the directory
- that contains the config files for hosts, services, etc.). The rest of the
- outline is obeyed. However it is worth mentioning that nameservers MUST be
- entered as Internet addresses, not Internet names or aliases. A feature not
- mentioned in resolver(5) is that the environment variable LOCALDOMAIN
- (Resolv$LocalDomain on RISC OS) can be set to overrride the 'domain' setting
- in 'resolve'.
- In resolv+(8), the /etc/hosts is simply <INetDBase$Path>hosts. NIS is
- not yet supported (ie. I can't find the source to the yp_... calls made). The
- file /etc/host.conf is now <INetDBase$Path>host/conf (installation using the
- same principle above). However, it can be placed anywhere and named anything,
- so long as it is mirrored in the system variable 'Resolv$HostConfig'.
- Similarly, the file <INetDBase$Path>resolv can be placed anywhere and named
- anything so long as it is mirrored in the system variable 'Resolv$ResConfig'.
-
- The environment variables listed are mapped as shown below:
- RESOLV_HOST_CONF is now Resolv$HostConfig
- RESOLV_SERV_ORDER is now Resolv$ServiceOrder
- RESOLV_SPOOF_CHECK is now Resolv$SpoofCheck
- RESOLV_ADD_TRIM_DOMAINS is now Resolv$AddTrimDomains
- RESOLV_OVERRIDETRIMDOMAINS is now Resolv$OverrideTrimDomains
- RESOLV_MULTI is now Resolv$Multi
- RESOLV_REORDER is now Resolv$Reorder
-
- If anyone wants the source, please send me an email at:
- chris@eric.reece.tased.edu.au. Don't expect an immediate reply though - I
- only check it occasionally. Basically, all you have to do is install the
- config files somewhere, set up the environment variables, include the resolve
- header file in your source, and use _gethostby... instead of gethostby....
-
- Best of British!
-
- Chris Knight