Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th May 2010, 20:00
nati nati is offline
Junior Member
 
Join Date: May 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default dns bind - lwresd doen't read local db

Hi,

I'm trying to use dns bind 9.7 as a local dns server which gets requests from my process and looks up values in a local database, built from lwresd.conf and zone files.
I compiled the lwresd library with my source code and use the api lwres_getaddrsbyname to send a domain lookup request from my proccess to the lwresd daemon. When i start lwresd to work with resolv.conf, it receives my request and resolves the address by sending a dns request to external dns server which was defined in resolv.conf. then, it sends the address to my process and everything works fine. but when i'm activating lwresd with my lwresd.conf by using the command "/sbin/lwresd -c lwresd.conf -g -d 100 &", i can see that the daemon reads lwres.cof and the zone files, it listens to 127.0.0.1/921 as i defined in lwresd.cond, i also see that it gets the message i send by calling lwres_getaddrsbyname, but for some reason it sends me back the error LWRES_R_UNEXPECTEDEND and prints the following:


root@crescendo:~# 04-May-2010 20:50:47.880 socket 0xb7cec008: dispatch_recv: event 0xb7cd93c8 -> task 0xb7cd4428
04-May-2010 20:50:47.880 socket 0xb7cec008: internal_recv: task 0xb7cd4428 got event 0xb7cec068
04-May-2010 20:50:47.880 socket 0xb7cec008 127.0.0.1#32768: packet received correctly
04-May-2010 20:50:47.880 socket 0xb7cec008: processing cmsg 0xb7cc10b0
04-May-2010 20:50:47.880 client 127.0.0.1#32768: UDP request
04-May-2010 20:50:47.880 client 127.0.0.1#32768: error
04-May-2010 20:50:47.880 client 127.0.0.1#32768: send
04-May-2010 20:50:47.880 client 127.0.0.1#32768: sendto
04-May-2010 20:50:47.880 client 127.0.0.1#32768: senddone
04-May-2010 20:50:47.880 client 127.0.0.1#32768: next
04-May-2010 20:50:47.880 client 127.0.0.1#32768: endrequest
04-May-2010 20:50:47.881 client @0xb7ced008: udprecv
04-May-2010 20:50:47.881 socket 0xb7cec008: socket_recv: event 0xb7cd93c8 -> task 0xb7cd4428

I have been trying to figure it out for days, have tried everything but got nothing so far.

does anyone know what could be the problem? maybe a lead?

Thanks,
Nati
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind - DNS question bl4ckb1rd Installation/Configuration 1 25th March 2010 21:12
ISPConfig Bind offline bobwdn Installation/Configuration 19 27th January 2009 18:26
ISPConfig and BIND on Debian sarge (rfc1912 : failed on zonecheck) arnaud Installation/Configuration 13 6th March 2007 12:40
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
Local IP in DNS Records tom1gozzi Installation/Configuration 1 14th June 2006 10:28


All times are GMT +2. The time now is 14:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.