home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Linux / Ubuntu_64-bit / ubuntu-11.04-desktop-amd64.iso / casper / filesystem.squashfs / etc / gai.conf < prev    next >
Text File  |  2011-04-11  |  3KB  |  87 lines

  1. # Configuration for getaddrinfo(3).
  2. #
  3. # So far only configuration for the destination address sorting is needed.
  4. # RFC 3484 governs the sorting.  But the RFC also says that system
  5. # administrators should be able to overwrite the defaults.  This can be
  6. # achieved here.
  7. #
  8. # All lines have an initial identifier specifying the option followed by
  9. # up to two values.  Information specified in this file replaces the
  10. # default information.  Complete absence of data of one kind causes the
  11. # appropriate default information to be used.  The supported commands include:
  12. #
  13. # reload  <yes|no>
  14. #    If set to yes, each getaddrinfo(3) call will check whether this file
  15. #    changed and if necessary reload.  This option should not really be
  16. #    used.  There are possible runtime problems.  The default is no.
  17. #
  18. # label   <mask>   <value>
  19. #    Add another rule to the RFC 3484 label table.  See section 2.1 in
  20. #    RFC 3484.  The default is:
  21. #
  22. #label ::1/128       0
  23. #label ::/0          1
  24. #label 2002::/16     2
  25. #label ::/96         3
  26. #label ::ffff:0:0/96 4
  27. #label fec0::/10     5
  28. #label fc00::/7      6
  29. #label 2001:0::/32   7
  30. #
  31. #    This default differs from the tables given in RFC 3484 by handling
  32. #    (now obsolete) site-local IPv6 addresses and Unique Local Addresses.
  33. #    The reason for this difference is that these addresses are never
  34. #    NATed while IPv4 site-local addresses most probably are.  Given
  35. #    the precedence of IPv6 over IPv4 (see below) on machines having only
  36. #    site-local IPv4 and IPv6 addresses a lookup for a global address would
  37. #    see the IPv6 be preferred.  The result is a long delay because the
  38. #    site-local IPv6 addresses cannot be used while the IPv4 address is
  39. #    (at least for the foreseeable future) NATed.  We also treat Teredo
  40. #    tunnels special.
  41. #
  42. # precedence  <mask>   <value>
  43. #    Add another rule to the RFC 3484 precedence table.  See section 2.1
  44. #    and 10.3 in RFC 3484.  The RFC requires:
  45. #
  46. #precedence  ::1/128       50
  47. #precedence  ::/0          40
  48. #precedence  2002::/16     30
  49. #precedence ::/96          20
  50. #precedence ::ffff:0:0/96  10
  51. #
  52. #    For sites which prefer IPv4 connections change the last line to
  53. #
  54. #precedence ::ffff:0:0/96  100
  55.  
  56. #
  57. # scopev4  <mask>  <value>
  58. #    Add another rule to the RFC 3484 scope table for IPv4 addresses.
  59. #    The definitions in RFC 3484 are equivalent to:
  60. #
  61. #scopev4 ::ffff:169.254.0.0/112  2
  62. #scopev4 ::ffff:127.0.0.0/104    2
  63. #scopev4 ::ffff:10.0.0.0/104     5
  64. #scopev4 ::ffff:172.16.0.0/108   5
  65. #scopev4 ::ffff:192.168.0.0/112  5
  66. #scopev4 ::ffff:0.0.0.0/96       14
  67. #
  68. #    For sites which use site-local IPv4 addresses behind NAT there is
  69. #    the problem that even if IPv4 addresses are preferred they do not
  70. #    have the same scope and are therefore not sorted first.  To change
  71. #    this use only these rules:
  72. #
  73. #scopev4 ::ffff:169.254.0.0/112  2
  74. #scopev4 ::ffff:127.0.0.0/104    2
  75. #scopev4 ::ffff:0.0.0.0/96       14
  76. #
  77. #    For sites which use site-local IPv4 addresses behind NAT there is
  78. #    the problem that even if IPv4 addresses are preferred they do not
  79. #    have the same scope and are therefore not sorted first.  To change
  80. #    this use only these rules:
  81. #
  82. #scopev4 ::ffff:169.254.0.0/112  2
  83. #scopev4 ::ffff:127.0.0.0/104    2
  84. #scopev4 ::ffff:0.0.0.0/96       14
  85. #
  86. #    This is what the Red Hat / Ubuntu setting currently uses.
  87.