home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / tcpip / ibmpc / 5141 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.0 KB

  1. Path: sparky!uunet!psgrain!ee.und.ac.za!daisy.ee.und.ac.za!barrett
  2. From: barrett@daisy.ee.und.ac.za (Alan P Barrett)
  3. Newsgroups: comp.protocols.tcp-ip.ibmpc
  4. Subject: Re: Do most PC's use DNS or a local hosts file?
  5. Date: 9 Sep 1992 13:32:27 GMT
  6. Organization: Univ. Natal, Durban, S. Africa
  7. Lines: 38
  8. Message-ID: <18kudbINNmlg@lucy.ee.und.ac.za>
  9. References: <dank.715727727@blacks>
  10. NNTP-Posting-Host: daisy.ee.und.ac.za
  11.  
  12. In article <dank.715727727@blacks>,
  13. dank@blacks.jpl.nasa.gov (Daniel R. Kegel) writes:
  14. > I'm writing a freeware tcp/ip application for the PC, and wonder if
  15. > I can rely on people to have DNS support for looking up IP addresses
  16. > from hostnames.
  17.  
  18. RFC1123 section 6.1.1 says:
  19.  
  20. "          Every host MUST implement a resolver for the Domain Name System
  21. "          (DNS), and it MUST implement a mechanism using this DNS
  22. "          resolver to convert host names to IP addresses and vice-versa
  23. "          [DNS:1, DNS:2].
  24.  
  25. However, in the real world, you cannot rely on DNS being available.
  26.  
  27. > If I can, my life is simpler, I can just distribute
  28. > hostnames; otherwise, I'll have to distribute IP addresses, too.
  29.  
  30. Your application should permit users to specify numeric addresses.
  31.  
  32. RFC1123 section 2.1 says:
  33.  
  34. "       be possible to enter either (1) a host domain name or (2) an IP
  35. "       address in dotted-decimal ("#.#.#.#") form.  The host SHOULD check
  36. "       the string syntactically for a dotted-decimal number before
  37. "       looking it up in the Domain Name System.
  38.  
  39. > Does your site support DNS for its pc's?  Are they configured to
  40. > use it, or do they use a static hosts file?
  41.  
  42. We certainly have nameservers that will answer queries that originate
  43. on PCs.  Whether or not a PC is able to make DNS queries depends on the
  44. software run on the PC, and I suggest that you build the ability to use
  45. DNS into your application.
  46.  
  47. --apb
  48. Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
  49. RFC822: barrett@ee.und.ac.za                    Bang: m2xenix!undeed!barrett
  50.