home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / conf / Info.Ultrix-hesiod < prev    next >
Internet Message Format  |  1994-04-08  |  2KB

  1. Return-Path: bind-workers-request
  2. Received: by gw.home.vix.com id AA04567; Fri, 28 Jan 94 13:20:51 -0800
  3. Received: by gw.home.vix.com id AA04555; Fri, 28 Jan 94 13:20:48 -0800
  4. Received: from monkeyboy.WPI.EDU (gshapiro@monkeyboy.WPI.EDU [130.215.24.62]) by bigboote.WPI.EDU (8.6.6.Beta0/8.6) with ESMTP id QAA02114; Fri, 28 Jan 1994 16:20:44 -0500
  5. From: Gregory Neil Shapiro <gshapiro@WPI.EDU>
  6. Received: from localhost (gshapiro@localhost) by monkeyboy.WPI.EDU (8.6.6.Beta0/8.6) id QAA14847; Fri, 28 Jan 1994 16:20:42 -0500
  7. Date: Fri, 28 Jan 1994 16:20:42 -0500
  8. Message-Id: <199401282120.QAA14847@monkeyboy.WPI.EDU>
  9. To: bind-workers@vix.com
  10. Cc: aej@WPI.EDU
  11. Subject: BIND 4.9.2 BETA05 resolver problem
  12.  
  13. We have a major problem with replacing Ultrix's resolver routines with
  14. those in 4.9.2 Beta 5.
  15.  
  16. Here at WPI we used Hesiod to serve our passwords.  4.9.2's resolver
  17. doesn't go to secondaries for the information if the first nameserver
  18. listed in /etc/resolv.conf isn't responding (i.e. if it dies, the host is
  19. down, or the nameserver is reloading) on any getpw*() call.
  20.  
  21. Here is my /etc/resolv.conf:
  22.  
  23. ;
  24. ; BIND data file.
  25. ;
  26. domain        WPI.EDU
  27. nameserver    130.215.24.62
  28. nameserver    130.215.24.56
  29. nameserver    130.215.56.45
  30. nameserver    130.215.8.125
  31.  
  32. Here is a program to show the broken behavior:
  33.  
  34. #include <sys/param.h>
  35. #include <netinet/in.h>
  36. #include <arpa/inet.h>
  37. #include <arpa/nameser.h>
  38. #include <stdio.h>
  39. #include <resolv.h>
  40. #include <unistd.h>
  41. #include <stdlib.h>
  42. #include <netdb.h>
  43.  
  44. main()
  45. {
  46.   printf("res.options = %x\n", _res.options);
  47.   if (getpwnam("gshapiro"))
  48.     printf("Ok\n");
  49.   else
  50.     printf("No\n");
  51.   if (gethostbyname("wpi"))
  52.     printf("Ok\n");
  53.   else
  54.     printf("No\n");
  55. }
  56.  
  57. If I compile with 4.9.2's resolver:
  58.  
  59. > cc -I/usr/local/include -I/usr0/CCCtools/BIND/4.9.2/include -I/usr0/CCCtools/BIND/4.9.2/compat/include try.c -o try -lresolv -l44bsd
  60.  
  61. And run it:
  62.  
  63. > ./try                                                       
  64. res.options = 2c0
  65. No
  66. Ok
  67.  
  68. If I compile with Ultrix's resolver (built-in to libc.a):
  69.  
  70. > cc try.c -o try
  71. > ./try
  72. res.options = 2c0
  73. Ok
  74. Ok
  75.  
  76. 4.9.2's resolver doesn't go on to secondaries on the getpw*() call.
  77. However, gethostbyname() calls do properly go to secondaries, it's only the
  78. Hesiod getpw*() calls that fail.
  79.