home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / mail / sendmail / 3122 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  3.4 KB

  1. Path: sparky!uunet!paladin.american.edu!gatech!usenet.ins.cwru.edu!agate!mastodon.CS.Berkeley.EDU!eric
  2. From: eric@CS.Berkeley.EDU (Eric Allman)
  3. Newsgroups: comp.mail.sendmail
  4. Subject: Re: Host search path in subdomain?
  5. Date: 7 Jan 1993 23:30:38 GMT
  6. Organization: UC Berkeley Mammoth Project
  7. Lines: 69
  8. Sender: eric@mastodon.CS.Berkeley.EDU (Eric Allman)
  9. Distribution: world
  10. Message-ID: <1iieeuINNa2b@agate.berkeley.edu>
  11. References: <1993Jan6.173047.16456@dde.dk>
  12. Reply-To: eric@CS.Berkeley.EDU
  13. NNTP-Posting-Host: mastodon.cs.berkeley.edu
  14.  
  15. In article <1993Jan6.173047.16456@dde.dk>, fll@dde.dk (Flemming Lau) writes:
  16. |> Why does sendmail not like all other nice net-utilities use the res_search()
  17. |> routine to resolve a not fully qualified name?
  18. |> 
  19. |> Example: 
  20. |> 
  21. |>     Our domain is dde.dk
  22. |>     We have a subdomain bqa.dde.dk
  23. |>     There is a host Kurt in the dde.dk domain
  24. |>     I can ping the name Kurt on a host in the bqa.dde.dk subdomain
  25. |>     I can NOT mail a user on Kurt from the same host. 
  26. |> 
  27. |> Sendmail.cf files insist on as they cannot find a CNAME for Kurt to 
  28. |> define it as Kurt.bqa.dde.dk which does not exist. Whereas ping etc.
  29. |> will try Kurt.bqa.dde.dk, Kurt.dde.dk etc. and succeed. 
  30. |> 
  31. |> Why is this and what do I do about it?
  32. |> 
  33. |> 
  34. |> Thanks for any help!
  35.  
  36. The answer to this is unfortunately quite complicated, and it starts
  37. with "it depends on what version you are running."  I know Berkeley
  38. sendmail best, so I'll describe that.
  39.  
  40. My intent was always that sendmail would do appropriate domain
  41. searching.  In particular, the .cf syntax $[ ... $] was intended
  42. to do the searching and replace an abbreviated hostname with a fully
  43. qualified hostname.
  44.  
  45. However, I had left Berkeley during the period when DNS was introduced.
  46. The entire file domain.c was not written by me, and it introduced some
  47. bugs -- notably, a fully qualified domain was replaced => only if the
  48. short name referred to a CNAME (canonical name, a.k.a. host alias) <=.
  49.  
  50. Also, the person who put this in apparently assumed that the .cf file
  51. would fully qualify the name before declaring it as an SMTP host name
  52. (via the $# mailer $@ hostname syntax), and hence turned off RES_DNSRCH
  53. when actually opening the mailer connection.
  54.  
  55. The point of all of this was to avoid the possibility of conflicts
  56. with top level domains.  The most common conflict in university
  57. computer science departments was with Czechoslovakia -- or .CS.  If
  58. you were in a CS Department (e.g., CS.Berkeley.EDU) and you happen to
  59. have a host with the same name as something in Czechoslovakia (e.g.,
  60. vse.CS), then does "vse.CS" mean the one in Czechoslovakia or the
  61. local one (vse.CS.Berkeley.EDU)?
  62.  
  63. Because of this, some versions of sendmail have disabled domain searching
  64. entirely, even for $[ ... $] syntax.
  65.  
  66. Sendmail release 6 (just released) tries to get around this by searching
  67. first the name as given then with the local domain extension.  For
  68. example, in CS.Berkeley.EDU, the name vse.CS is tried as:
  69.  
  70.     vse.CS
  71.     vse.CS.CS.Berkeley.EDU
  72.     vse.CS.Berkeley.EDU
  73.  
  74. If you are just talking about using the name "Kurt" from within
  75. bqa.dde.dk, you can do this pretty easily -- since all domain names
  76. must include at least one dot, you can assume that a name with no dots
  77. must be in your subdomain.  This doesn't help you if you also have
  78. hosts in your superdomain (e.g., Kristin.dde.dk).
  79.  
  80. Sorry this is so long.  Unfortunately, the decision to not include an
  81. explicit root node in DNS names made it inevitable.
  82.  
  83. eric
  84.