home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / network / resolv_1 / ReadMe1st < prev   
Text File  |  1994-10-24  |  3KB  |  45 lines

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