<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="post_message_81215">
                        
                        Hi,<br>
<br>I integrated the lwresd library files into my software which in the end runs as a process side by side with the lwresd daemon on the same machine.<br>
I send gethostbyname messages from my process to lwresd daemon. <br>When I start the lwresd daemon to run with its<br>
defaults (<tt style="color: rgb(0, 122, 0);">/sbin/lwresd &</tt>), it reads resov.conf, and when it gets my gethostbyname message, it sends a dns request to one of the external servers and responses to
my request with the right address. but when I start the lwresd daemon
with my lwresd.conf (<tt style="color: rgb(0, 122, 0);">/sbin/lwresd -c /etc/lwresd -g -d 100 &</tt>),
I can see that it gets my gethostbyname message but it seems that it
doesn't search it's own database, which was built according to lwresd.conf and
zone files.<br>
This is the lwresd log after getting a gethostbyname request from my process:<br>
<br>
<div style="margin: 5px 20px 20px;">
        <div class="smallfont" style="margin-bottom: 2px;">Code:</div>
        <pre class="alt2" dir="ltr" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: auto; height: 226px; text-align: left;">root@crescendo:~# 05-May-2010 08:14:33.399 socket 0xb7cec008: dispatch_recv:  event 0xb7cd93c8 -> task 0xb7cd4428<br>05-May-2010 08:14:33.399 socket 0xb7cec008: internal_recv: task 0xb7cd4428 got event 0xb7cec068<br>05-May-2010 08:14:33.399 socket 0xb7cec008 127.0.0.1#32768: packet received correctly<br>05-May-2010 08:14:33.399 socket 0xb7cec008: processing cmsg 0xb7cc10b0<br>05-May-2010 08:14:33.399 client 127.0.0.1#32768: UDP request<br>05-May-2010 08:14:33.400 client 127.0.0.1#32768: error<br>05-May-2010 08:14:33.400 client 127.0.0.1#32768: send<br>05-May-2010 08:14:33.400 client 127.0.0.1#32768: sendto<br>05-May-2010 08:14:33.400 client 127.0.0.1#32768: senddone<br>05-May-2010 08:14:33.400 client 127.0.0.1#32768: next<br>05-May-2010 08:14:33.400 client 127.0.0.1#32768: endrequest<br>05-May-2010
 08:14:33.400 client @0xb7ced008: udprecv<br>05-May-2010 08:14:33.400 socket 0xb7cec008: socket_recv: event 0xb7cd93c8 -> task 0xb7cd4428</pre>
</div><br>
all I want is to run a local lwresd which builds its own database from
lwresd.conf and zone files and searches its own db only without
contacting any external dns server, but for some reason it doesn't work.<br>
<br>
I verified that lwresd daemon reads lwresd.conf and zone files. I also run checkconf and checkzones.<br>
<br>
Any idea what could be the problem?<br><br>Thanks,<br>Nati<br></div>
                <!-- / message -->

                

                
                

                

                

                
                <!-- edit note -->
                        
                                <hr style="color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);" size="1"></td></tr></table><br>