home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / networki / 2587 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  2.3 KB

  1. Path: sparky!uunet!gatech!asuvax!ncar!noao!coyote!emdisle!Mahoney
  2. From: Mahoney@emdisle.FIDONET.ORG (Mike Mahoney)
  3. Newsgroups: comp.os.os2.networking
  4. Subject: resolv files
  5. Message-ID: <220.2B4259B0@emdisle.FIDONET.ORG>
  6. Date: Wed, 30 Dec 92 16:44:18 PDT
  7. Organization: The Emerald Isle BBS, Tucson, AZ (602) 749-8638
  8. Lines: 41
  9.  
  10. In a message of <Dec 30 12:01> (richard hajinlian) writes to All:
  11.  
  12.  rh>Can anyone help with the resolv/host files?  what should the resolv file
  13.  rh>look like?  And on which machine(s) do they live.  And if you say on the
  14.  rh>client resolv file "nameserver 192.192...." what software do you start
  15.  rh>on the server that will do the name lookup?
  16.  
  17.    There are two ways to resolve host names. The first is to have a hosts 
  18. file on each machine that handles it. The file is made up of just the IP
  19. address followed by the hostname. A third optional parameter can be used
  20. to define an alias for the machine. This file resides in the etc directory.
  21.  
  22.    The second approach is to have another machine resolve names for you.
  23. To do this, you need a file called resolv in the directory pointed to by
  24. the etc environment variable. This file normally only contains two lines.
  25.  
  26.         domain my.domain.com
  27.         nameserver x.xxx.xxx.xxx
  28.  
  29. The first line defines your own domain name and the second defines which 
  30. host provides name services. If you have more than one nameserver in your
  31. domain you can have multiple nameserver lines.
  32.  
  33.    It is permissible to have both a hosts file and a resolv file. That way
  34. if the host isn't located by the nameserver your own hosts file will be 
  35. checked. 
  36.  
  37.    The resolv file on the nameserver should be present but empty, and this
  38. machine should run the named daemon all the time to respond to queries from
  39. other hosts. It uses a series of files that constitute its database. The
  40. first is named.boot which points to the other files that make up the name-
  41. server's database. The other files have forward and reverse name resolution
  42. data in them. You can also optionally define a cached upstream nameserver
  43. to which higher level name requests are passed.
  44.  
  45. --- msgedsq/2 2.1
  46.  * Origin: The Emerald Isle * Tucson, AZ. (602) 749-8638 (1:300/14)
  47. --  
  48. Mike Mahoney - via FidoNet node 1:300/14
  49. UUCP: uunet...!noao!coyote!emdisle!Mahoney
  50. INTERNET: Mahoney@emdisle.FIDONET.ORG
  51.