home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21247 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.2 KB  |  65 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!fauern!dec16!winx05!uchrist
  3. From: uchrist@winx06.informatik.uni-wuerzburg.de (Udo Christ)
  4. Subject: [Q] gethostbyname & named (longer)
  5. Message-ID: <1992Dec21.115942.13922@informatik.uni-wuerzburg.de>
  6. Keywords: TCP-IP
  7. Sender: news@informatik.uni-wuerzburg.de (USENET News account)
  8. Organization: University of Wuerzburg, Germany
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. Date: Mon, 21 Dec 1992 11:59:42 GMT
  11. Lines: 52
  12.  
  13. Hi all,
  14.     i ran down into a few problems when compiling the plp sources
  15. ( nice printer spooler anyway ) last weekend.
  16.  
  17. The problem is :
  18.     1) When i start up /usr/lib/lpd ( the daemon is configured correct )
  19.         it takes about 1 min to come up right.
  20.  
  21.     2) Everytime i start a printer job with lpr it takes ~1 min too.
  22.        ( even when i just use lpc to examine the queue )
  23.  
  24.  I tracked the problem down to a call to the gethostbyname() function, which
  25.  takes a little over 1 min to complete. I wrote a little C Program, which
  26.  does nothing, but a call to gethostbyname, and timed it :
  27.  
  28.     real    1:15.0
  29.     user    0.0
  30.     sys    0.0
  31.  
  32.   Anyone had the same problems ?? 
  33.  
  34.  I've compiled the kernel with full support on everything :-)
  35.  and also tried to get a named running, but with little to no success.
  36.  
  37.  ( can be read as : named comes up, reads the conf-files with no
  38.             errors, but a nslookup or nsquery returns
  39.             no name server for the root domain )
  40.  
  41.  
  42.  Has anyone a running named configured correctly with all the related
  43.  configuration files ( email me ), or, even better, there must be
  44.  a way to tell gethostbyname to return immediatly if no name-server is 
  45.  running. ( This makes a little more sense to me, since i'm using my
  46.  Linux Box as a stand-alone-not-connected-to-network-machine ).
  47.  
  48.  I know that there must be files, which tell gethostbyname not to wait
  49.  for a name-server timeout, but don't know the names and the contents.
  50.  
  51.  Even the TCP-IP FAQ doesn't stat such things.
  52.  
  53. And BTW: The section about the named configuration files in the FAQ took
  54.      some time to understand. ( The file named.boot is referenced at
  55.      least two times with different contents ).
  56.     
  57.  
  58.    Could someone fill me up on the above problems, please ??
  59.  
  60.  
  61.             Thanx in  advance, Udo
  62.  
  63.         uchrist@winx06.informatik.uni-wuerzburg.de
  64.  
  65.