Subject: Re: gethostbyname prob
To: Michael Core <520079546242-0001@t-online.de>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: netbsd-users
Date: 06/28/2002 20:09:12
On Wed, Jun 26, 2002 at 11:24:30PM +0200, Michael Core wrote:
...
> The following program gives me this result:
>
> $ ./gethost pop.btx.dtag.de
...
Thank you for your example! My code got 12 for your host too.
> Therefore, I don't really see your problem. What do nslookup and
> dnsquery tell you? Maybe there's some problem with the local or remote
> DNS configuration.
Yup: there were 2 entries in DNS, but 1 in /etc/hosts! Removing the entry
in /etc/hosts means it all works!
Thank you for the pointer!
Cheers,
Patrick