Federico Giannici wrote:
Otto Moerbeek wrote:

On Tue, 6 Dec 2005, Federico Giannici wrote:


Since I upgraded an OpenBSD/amd64 3.7 to 3.8 (following instructions in the "Upgrade Guide") sometimes gethostbyname() returns NULL with h_errno equal to
-1 ("Resolver internal error").


What is the value of errno?


errno is 2.


The program (OpenSER 1.0.0) had no problems under 3.7.
The domain string is correct.

The error seems to appear the SECOND time the gethostbyname() function is
called by the same process.

What could be the problem?



Check the usual suspect: /etc/resolv.conf


It is the same of 3.7, simply the following:

lookup file bind
nameserver 195.120.250.10

May it be relevant that the program is run chrootted???

I'm going to make some tests, as soon as I have the time...

Got it!
I simply copied "/etc/resolv.conf" to the chrootted path and the problem disappeared.

So something changed beetween 3.7 and 3.8 in the way /etc/resolv.conf is accessed...


Thank you.

--
___________________________________________________
    __
   |-                      [EMAIL PROTECTED]
   |ederico Giannici      http://www.neomedia.it
___________________________________________________

Reply via email to