Date: Thu, 9 Mar 2006 10:43:29 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: othermark <atkin901@yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Advice on the lightweight resolver, lwres. Message-ID: <20060309164329.GD24511@dan.emsphone.com> In-Reply-To: <dupkpt$u7q$1@sea.gmane.org> References: <dupkpt$u7q$1@sea.gmane.org>
index | next in thread | previous in thread | raw e-mail
In the last episode (Mar 09), othermark said:
> I was working on converting the STAF (staf.sourceforge.net) project
> to an freebsd port, and on my first attempt, I attempted to use the
> lightweight resolver library because of the thread safe functions
> _r() that were available.
>
> However once I finished a straight port, I found, that
> lwres_gethostbyname() always returns 61 (connection refused).
> Nothing ever shows up on tcpdump on any interface (yes, even lo0).
> Of course, just changing the netdb include and compiling without
> lwres works.
>
> example of slightly modified code from the staf project:
Are you running lwresd (the lwres lookup daemon)? Try trussing your
program:
socket(PF_INET,SOCK_DGRAM,17) = 3 (0x3)
connect(3,{ AF_INET 127.0.0.1:921 },16) = 0 (0x0)
According to the lwres manpage, lwresd needs to be running, and I'm
guessing it would listen on UDP port 921.
--
Dan Nelson
dnelson@allantgroup.com
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060309164329.GD24511>
