home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / tcpip / domains / 628 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.protocols.tcp-ip.domains
  2. Path: sparky!uunet!news.mtholyoke.edu!jbotz
  3. From: jbotz@mtholyoke.edu (Jurgen Botz)
  4. Subject: Re: looking for "the answer"
  5. Message-ID: <Bun0Iy.27s@mtholyoke.edu>
  6. Sender: news@mtholyoke.edu (USENET News System)
  7. Organization: Mount Holyoke College
  8. References: <mstgil.716574450@sol>
  9. Date: Tue, 15 Sep 1992 20:49:46 GMT
  10. Lines: 28
  11.  
  12. In article <mstgil.716574450@sol> mstgil@sol.acs.unt.edu writes:
  13. >OK, here's the question...
  14. >    which is "the official name" for a host...
  15. >    hostname   or   hostname.domain
  16. >
  17. >I tend to lean towards hostname.domain since it is more specific,
  18. >Kinda like is my "official name" Marc  or  Marc Philip Alexander Jordan St.-Gil.
  19. >The U.S. Gov. says it's the latter.
  20. >
  21. >So, does that mean that gethostname(2) should return host.domain?????
  22.  
  23. My preference is also host.domain.  The only drawback to this is that
  24. entries in various system files that specify access permissions (such
  25. as /etc/exports) get much longer (since the reverse lookups from IP#
  26. to hostname always return the primary name).
  27.  
  28. Also, users who use the hostname in their prompt will want to do something
  29. like this: "set prompt="`hostname | cut -d. -f1`%" or get awfully long
  30. prompts (depending on how long your domain name is ;-)
  31.  
  32. But generally it makes much more sense... the name of a host on the
  33. Internet is it's FQDN, and the short name is just an alias that's a
  34. convenience to users.
  35. --
  36. Jurgen Botz                  |   Internet: JBotz@mtholyoke.edu
  37. Academic Systems Consultant  |     Bitnet: JBotz@mhc.bitnet
  38. Mount Holyoke College        |      Voice: (US) 413-538-2375 (daytime)
  39. South Hadley, MA, USA        | Snail Mail: J. Botz, 01075-0629
  40.