home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / admin / 5840 < prev    next >
Encoding:
Text File  |  1992-08-25  |  2.0 KB  |  55 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!destroyer!gatech!psuvax1!atlantis.psu.edu!barr
  3. From: barr@pop.psu.edu (David Barr)
  4. Subject: Re: DNS-no-NIS.FAQ
  5. Message-ID: <awy1Hfzz69@atlantis.psu.edu>
  6. Sender: news@atlantis.psu.edu (Usenet)
  7. Organization: Penn State Population Research Institute
  8. References: <7_#npdg.ptrubey@netcom.com> <c_12Hk6s19@atlantis.psu.edu> <1992Aug25.070915.11584@intellection.com>
  9. Date: Wed, 26 Aug 92 01:11:07 GMT
  10. Lines: 43
  11.  
  12. In article <1992Aug25.070915.11584@intellection.com> emcguire@mama3.intellection.com (Ed McGuire) writes:
  13. >In article <c_12Hk6s19@atlantis.psu.edu> barr@pop.psu.edu (David Barr) writes:
  14. >
  15. >   No this is exactly what you can do.  In fact that's what I do here.
  16. >
  17. >   darwin:~>grep localhost /var/domain/pop.psu
  18. >   localhost    in    a    127.1
  19. >
  20. >Why put "localhost" in a local domain?  
  21.  
  22. Because I am only authoratative for my local domain.  (see again the
  23. philosophical discussions I mentioned previously?)  Now, since every
  24. single system I've ever heard of uses "127.0.0.1" to mean "localhost"
  25. and vice versa, it doesn't matter too much, but technically you should
  26. only have records in your database for which you are authoratative,
  27. excluding cache of course.
  28. (I say that with my fingers crossed behind my back... :-/  )
  29.  
  30. >And why 127.1 instead of 127.0.0.1?
  31.  
  32. Cause it _is_ 127.0.0.1.  :-)  A little DNS trick I picked up.
  33.  
  34. darwin:~>grep localhost /var/domain/pop.psu
  35. localhost    in    a    127.1
  36. darwin:~>dig any localhost @localhost
  37. ; <<>> DiG 2.0 <<>> any localhost @localhost 
  38. ;; ->>HEADER<<- opcode: QUERY , status: NOERROR, id: 10
  39. ;; flags: qr aa rd ra ; Ques: 1, Ans: 1, Auth: 0, Addit: 0
  40. ;; QUESTIONS: 
  41. ;;    localhost.pop.psu.edu, type = ANY, class = IN
  42.  
  43. ;; ANSWERS:
  44. localhost.pop.psu.edu.    86400    A    127.0.0.1
  45.  
  46. ;; Sent 1 pkts, answer found in time: 0 msec 
  47. ;; FROM: darwin to SERVER: localhost  127.0.0.1
  48. ;; WHEN: Tue Aug 25 21:00:24 1992
  49. ;; MSG SIZE  sent: 39  rcvd: 55
  50.  
  51. --Dave
  52. -- 
  53. System Administrator, Population Research Institute    barr@pop.psu.edu
  54. Emacs is a fine operating system, but I still prefer UNIX. - Tom Christiansen
  55.