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