dns proxy, samba 3.0.2a

Christopher R. Hertel crh at ubiqx.mn.org
Fri Mar 12 19:00:54 GMT 2004


Dmitry,

Could you please open a bug report on this?  Include your message and fix.  
I'm fussing around in nmbd_winsserver.c so I will take a look.

Please let me know what the bug number is.

  http://bugzilla.samba.org/

Chris -)-----

On Fri, Mar 12, 2004 at 01:20:31PM +0400, Dmitry Melekhov wrote:
> Hello!
> 
> I just found why dns proxy doesn't work in samba 3.
> 
> It do dns lookup for first time and then caches value with some TTL.
> Than it checks for name in cache first.
> But, when TTL is expired nmbd doesn't delete name from cache!
> This is why dns proxy doesn't work.
> I don't know how this cache machanism works and have no enough time to 
> learn :-(
> So, I just did quick hack- if nmbd finds that name is expired it tries 
> to resolve it with dns.
> 
> diff nmbd_winsserver.c.orig nmbd_winsserver.c
> 
> 1489a1490,1497
> >                       if(lp_dns_proxy() && ((question->name_type == 
> 0x20) || question->name_type == 0)) {
> >                               DEBUG(3,("wins_process_name_query: name 
> query for name %s is expired - doing dns lookup.\n",
> >                               nmb_namestr(question) ));
> >
> >                               queue_dns_query(p, question, &namerec);
> >                               return;
> >                       }
> >
> 
> Certanly, this is not right way, but this works for me.
> 
> 

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh at ubiqx.org


More information about the samba-technical mailing list