home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / ISP / bind.4.8.3.lzh / BIND483 / MAN / hostname.7 < prev    next >
Text File  |  1993-08-24  |  3KB  |  67 lines

  1. .\" Copyright (c) 1987 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms are permitted
  5. .\" provided that the above copyright notice and this paragraph are
  6. .\" duplicated in all such forms and that any documentation,
  7. .\" advertising materials, and other materials related to such
  8. .\" distribution and use acknowledge that the software was developed
  9. .\" by the University of California, Berkeley.  The name of the
  10. .\" University may not be used to endorse or promote products derived
  11. .\" from this software without specific prior written permission.
  12. .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  13. .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  14. .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  15. .\"
  16. .\"    @(#)hostname.7    6.4 (Berkeley) 1/16/90
  17. .\"
  18. .TH HOSTNAME 7 "January 16, 1990"
  19. .UC 5
  20. .SH NAME
  21. hostname \- host name resolution description
  22. .SH DESCRIPTION
  23. Hostnames are domains, where a domain is a hierarchical, dot-separated
  24. list of subdomains; for example, the machine monet, in the Berkeley
  25. subdomain of the EDU subdomain of the Internet would be represented as
  26. .br
  27.         monet.Berkeley.EDU
  28. .br
  29. (with no trailing dot).
  30. .PP
  31. Hostnames are often used with network client and server programs,
  32. which must generally translate the name to an address for use.
  33. (This function is generally performed by the library routine
  34. .IR gethostbyname (3).)
  35. Hostnames are resolved by the Internet name resolver in the following
  36. fashion.
  37. .PP
  38. If the name consists of a single component, i.e. contains no dot,
  39. and if the environment variable ``HOSTALIASES'' is set to the name of a file,
  40. that file is searched for an string matching the input hostname.
  41. The file should consist of lines made up of two white-space separated strings,
  42. the first of which is the hostname alias,
  43. and the second of which is the complete hostname
  44. to be substituted for that alias.
  45. If a case-insensitive match is found between the hostname to be resolved
  46. and the first field of a line in the file, the substituted name is looked
  47. up with no further processing.
  48. .PP
  49. If the input name ends with a trailing dot,
  50. the trailing dot is removed,
  51. and the remaining name is looked up with no further processing.
  52. .PP
  53. If the input name does not end with a trailing dot, it is looked up
  54. by searching through a list of domains until a match is found.
  55. The default search list includes first the local domain,
  56. then its parent domains with at least 2 name components (longest first).
  57. For example,
  58. in the domain CS.Berkeley.EDU, the name lithium.CChem will be checked first
  59. as lithium.CChem.CS.Berkeley.EDU and then as lithium.CChem.Berkeley.EDU.
  60. Lithium.CChem.EDU will not be tried, as the there is only one component
  61. remaining from the local domain.
  62. The search path can be changed from the default
  63. by a system-wide configuration file (see
  64. .IR resolver (5)).
  65. .SH SEE ALSO
  66. gethostbyname(3), resolver(5), mailaddr(7), named(8)
  67.