home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!fauern!dec16!winx05!uchrist
- From: uchrist@winx06.informatik.uni-wuerzburg.de (Udo Christ)
- Subject: [Q] gethostbyname & named (longer)
- Message-ID: <1992Dec21.115942.13922@informatik.uni-wuerzburg.de>
- Keywords: TCP-IP
- Sender: news@informatik.uni-wuerzburg.de (USENET News account)
- Organization: University of Wuerzburg, Germany
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Mon, 21 Dec 1992 11:59:42 GMT
- Lines: 52
-
- Hi all,
- i ran down into a few problems when compiling the plp sources
- ( nice printer spooler anyway ) last weekend.
-
- The problem is :
- 1) When i start up /usr/lib/lpd ( the daemon is configured correct )
- it takes about 1 min to come up right.
-
- 2) Everytime i start a printer job with lpr it takes ~1 min too.
- ( even when i just use lpc to examine the queue )
-
- I tracked the problem down to a call to the gethostbyname() function, which
- takes a little over 1 min to complete. I wrote a little C Program, which
- does nothing, but a call to gethostbyname, and timed it :
-
- real 1:15.0
- user 0.0
- sys 0.0
-
- Anyone had the same problems ??
-
- I've compiled the kernel with full support on everything :-)
- and also tried to get a named running, but with little to no success.
-
- ( can be read as : named comes up, reads the conf-files with no
- errors, but a nslookup or nsquery returns
- no name server for the root domain )
-
-
- Has anyone a running named configured correctly with all the related
- configuration files ( email me ), or, even better, there must be
- a way to tell gethostbyname to return immediatly if no name-server is
- running. ( This makes a little more sense to me, since i'm using my
- Linux Box as a stand-alone-not-connected-to-network-machine ).
-
- I know that there must be files, which tell gethostbyname not to wait
- for a name-server timeout, but don't know the names and the contents.
-
- Even the TCP-IP FAQ doesn't stat such things.
-
- And BTW: The section about the named configuration files in the FAQ took
- some time to understand. ( The file named.boot is referenced at
- least two times with different contents ).
-
-
- Could someone fill me up on the above problems, please ??
-
-
- Thanx in advance, Udo
-
- uchrist@winx06.informatik.uni-wuerzburg.de
-
-